handle_line:
// Remove leading non-indent space from line
- if (l->child && l->child->type == NON_INDENT_SPACE) {
+ if (block->type != BLOCK_CODE_FENCED && l->child && l->child->type == NON_INDENT_SPACE) {
token_remove_first_child(l);
}
case LINE_INDENTED_SPACE:
// Strip leading indent (Only the first one)
- if (l->child && ((l->child->type == INDENT_SPACE) || (l->child->type == INDENT_TAB))) {
+ if (block->type != BLOCK_CODE_FENCED && l->child && ((l->child->type == INDENT_SPACE) || (l->child->type == INDENT_TAB))) {
token_remove_first_child(l);
}
<text:p text:style-name="Preformatted Text"><p>foo</p><text:line-break/></text:p>
+<text:p text:style-name="Preformatted Text">foo<text:line-break/><text:line-break/><text:tab/>bar<text:line-break/><text:line-break/>bar<text:line-break/><text:line-break/> foo<text:line-break/></text:p>
+
<text:p text:style-name="Preformatted Text">foo<text:line-break/></text:p>
</office:text>
</office:body>