Do not add a carriage return after a hard line break in OpenDocument writer and reflect change in tests.

This commit is contained in:
Michael Chladek 2015-07-01 09:43:36 -05:00
parent 6862aa2687
commit 125b0c7359
2 changed files with 2 additions and 3 deletions

View file

@ -378,7 +378,7 @@ inlineToOpenDocument :: WriterOptions -> Inline -> State WriterState Doc
inlineToOpenDocument o ils
| Space <- ils = inTextStyle space
| Span _ xs <- ils = inlinesToOpenDocument o xs
| LineBreak <- ils = return $ selfClosingTag "text:line-break" [] <> cr
| LineBreak <- ils = return $ selfClosingTag "text:line-break" []
| Str s <- ils = inTextStyle $ handleSpaces $ escapeStringForXML s
| Emph l <- ils = withTextStyle Italic $ inlinesToOpenDocument o l
| Strong l <- ils = withTextStyle Bold $ inlinesToOpenDocument o l

View file

@ -896,8 +896,7 @@ of a paragraph looked like a list item.</text:p>
<text:p text:style-name="Text_20_body">Heres one with a bullet. *
criminey.</text:p>
<text:p text:style-name="Text_20_body">There should be a hard line
break<text:line-break />
here.</text:p>
break<text:line-break />here.</text:p>
<text:p text:style-name="Horizontal_20_Line" />
<text:h text:style-name="Heading_20_1" text:outline-level="1">Block
Quotes</text:h>