Bug 548205 - ExtendedQuoteBlock does not handle nested blocks that end mid-line
Summary: ExtendedQuoteBlock does not handle nested blocks that end mid-line
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.0.32   Edit
Assignee: Dawn Baikie CLA
QA Contact: Leo Dos Santos CLA
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2019-06-12 16:55 EDT by Dawn Baikie CLA
Modified: 2019-06-24 20:58 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dawn Baikie CLA 2019-06-12 16:55:51 EDT
This defect is regarding transforming Confluence markup into HTML.  

When a quote includes a nested block that doesn't end at the end of a line, we get an IllegalStateException with the message "if a block does not fully process a line then it must be closed".  Currently, the ExtendedQuoteBlock delegates the processing of a line to the nested block if there is one, but if the nested block closes without processing the full line, ExtendedQuoteBlock doesn't process the rest of the line although it's still within the quote block.  

Example markup: "{quote}\nh1. Headline 1\nh2. Headline 2\n{quote}"
(Note that the heading blocks end at the start of the next line, rather than the end of the heading line.)
Comment 1 Eclipse Genie CLA 2019-06-12 17:59:26 EDT
New Gerrit change created: https://git.eclipse.org/r/143898
Comment 3 Leo Dos Santos CLA 2019-06-20 19:38:34 EDT
Thanks for the contribution Dawn. This fix will be in the 3.0.30 release.