* @param myMatch LT rule match
* @return SingleGrammarError - object for OOo checker integration
*/
private SingleProofreadingError createOOoError(final RuleMatch myMatch,
final int startIndex) {
final SingleProofreadingError aError = new SingleProofreadingError();
aError.nErrorType = com.sun.star.text.TextMarkupType.PROOFREADING;
// the API currently has no support for formatting text in comments
final String comment = myMatch.getMessage()
.replaceAll("<suggestion>", "\"").replaceAll("</suggestion>", "\"")
.replaceAll("([\r]*\n)", " "); // convert line ends to spaces