arturobernalg opened a new pull request, #557: URL: https://github.com/apache/jspwiki/pull/557
Closing a style with the marker slash and percent sign worked only when a space, a line break or the end of the line followed it. When a letter followed it directly, as in short/%cake in the report, the parser read the letters as the class name of a new style and the word after the marker was lost; an opening parenthesis was read as the style of a new block. The closing marker was handled by the same code that opens a style, and now it only closes. The line with short%%change in the report is not changed: two percent signs followed by letters open a style with that class name, by the syntax. Three tests in JSPWikiMarkupParserTest fail without the change and pass with it, one for a style, one for a class and one for a parenthesis after the marker. The whole jspwiki-main suite passes. I found no page among the bundled wiki pages that has letters or a parenthesis right after the closing marker, but a page written that way would now show them as text instead of opening a new style. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
