Add support for inserting page breaks
Fix hyperlinks/styles/code sections inside textboxes
Support 'margin-left' property for tables
Support table widths in points as well as percent
Allow STYLEREF field code
Add support for table borders
Support padding in tables and table cells
Add support for specifying the line-height attribute as a percentage
Add support for line-height
CSS attribute
Bugfix for incredibly long hyperlinks
Bugfix for custom word fields like '@DOCUMENT'
Accept all mimetypes in data-uri images.
CSS padding-top
and padding-bottom
attributes are supported. This sets the SpaceAfter
and SpaceBefore
property on the ParagraphFormat
object.
Hooks are now fired for Format
operations as well, with extra arguments for the original operation and
the range it encompasses.
Add support for more word fields in hyperlinks. The syntax is <a href='@CODE'>
. Currently only FILENAME
is supported
Add support for text-alignment in paragraphs.
Add support for table cell text orientations through the css writing-mode
property
Add support for inserting cross references. Use <a href='!ref'>
. If the reference does not exist yet you will need to
select the whole document and call Fields.Update() before saving.
Add a wordinserter
CLI tool for quick prototyping
Correctly handle tables with mixed widths
Correctly handle 'pt' font-size CSS declarations. Since 0.9.5.1 they where incorrectly treated the same as 'px' values.
Set the default parser to be 'html' in wordinserter.render
. Also improve handling of elements with invalid children,
so for example this markup correctly renders: <h1><strong>Test</strong></h1>
Support non-float CSS font-sizes
Correctly support the background color in display: block elements.
Actually fix headings not having bookmarks applied.
Fix headings not having bookmarks applied if they have an id
attribute set.
Fix Heading element not being correctly rendered, and fix cell table widths throwing an error if they are pixel based but the parents are percentage based
Fix for some python 3.5 specific syntax
Ignore text elements from child validation
Don't error with images that have no src attribute.
Add support for rotated text in table cells
Correctly handle CSS inheritance: child styles are applied after the parent ones (before this they were applied top down, children first). This means child styles correctly override parent ones.
Handle broken images correctly. If an image is invalid then the 404.png
will be inserted.
Handle hyperlinks after lists correctly.
Improve error support, InsertErrors now store the exc_info()
of the
inner exception.
Fix CodeBlock spacing styles being incorrectly reverted after the CodeBlock has finished.
Improve list formatting
Fix using int() when floats are expected.
Fix handling of background colors
Fix table cell range handling.
Don't do the formatting "x" hack unless there is actually a format to apply. Improved the speed of table creation.
Disabled spell checking for code blocks. All nodes now support an "id" attribute, and if it is specified in a
heading tag a bookmark is added with the ID attribute as its name. Hyperlinks also now support a bookmark if their
URL's start with a "#", so <a href="#name">
would link to <h1 id="name">
.
Majorly refactored the whitespace handling code. It not actually works :)
Fix line spacing after CodeBlocks. Added support for border styles in images, and for multiple constants (use the
CombinedConstants
class)
Added support for CSS files! WHERE IS YOUR GOD NOW? You can pass a stylesheets
array to parse()
with some css
definitions and it will do the right thing.
Added support for images with data URIs. Passing an image with a src set to "data:mimetype,base64;DATA..." will work as expected, by extracting the image from the data URI and saving it, before inserting.
Remove break_across_pages
. Word is horrible, you need to make the application Visible=True for
this to work. This should be handled by your app code not this library.
Add an attribute break_across_pages
to the Table operation. Add this to make your tables break
across pages, hopefully.
Fix an encoding error on Windows Server. Why windows, why. :(
Fixed an error when an unknown language is given inside a code block.
Refactored the lists implementation to not suck and actually function. We now support roman numerals,
complex nested lists and other funky stuff. Added a lxml
dependency and hard-coded the parser to be lxml
.
Remove pywin32 dependency
Add support for table cells with background colors.
Actually handle ListElements with no children
Handle ListElements with no children
Apparently there is already a 0.7.5 release. Not sure how that happened.
Added support for CSS named colors, i.e color: black
.
Callbacks are now called after the operation has been styled, instead of before.
Hopefully improved whitespace handling inside ListElements
, and improved the logic behind LineBreak
operations.
Fixes for table cells with no width, also always ensure a Format
object is attached to an Operation.
Added support for tables with percentage widths.
Added support for text-align CSS classes inside tables
Added support for
tags.
Fixed an issue where inserting an image as the only content of a TableCell would cause it to be inserted in the wrong place.