[
https://issues.apache.org/jira/browse/ESME-307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12994508#comment-12994508
]
Vassil Dichev commented on ESME-307:
------------------------------------
I'm not sure adding punctuatioon to the spaceOrEnd parser is the right path
yet. How would would punctuation which is not the end of the text parse then:
how *would*?this parse
If we decide that punctuation should end the special markup, then it should
also begin next inline markup, and you have to modify begOrSpace too:
would this?*parse* correctly
Also, rather than being inconsistent and wondering what is punctuation, I'd
rather use the regular expression Pattern.compile("""\p{Punct}""")
It's also very informative to read the grammar rules for a couple of existing
lightweight markup parsers, for instance the reStructuredText markup
specification:
http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#inline-markup
> Format rendering gets confused by some punctuation
> --------------------------------------------------
>
> Key: ESME-307
> URL: https://issues.apache.org/jira/browse/ESME-307
> Project: Enterprise Social Messaging Environment (ESME)
> Issue Type: Bug
> Components: Server
> Affects Versions: Release 1.1
> Reporter: Ethan Jewett
> Assignee: Vladimir Ivanov
> Priority: Minor
> Fix For: 1.2
>
>
> Try the following messages:
> Does *this* work?
> How about *this*?
> In the first message, "this" is rendered in bold with no asterisks. In the
> second message, it is rendered in normal text as "*this*".
> The first behavior is correct.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira