summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-12-12 16:25:43 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-12-12 16:25:43 +0100
commit0e46ecb0034ed378b926a113e1897f2740fc6d87 (patch)
tree18b2121e95d8c1fbaa40f580e4fd42e4f3863424
parent8378b854a1582ccfdcc5ef5c23d7bc7c4a63bc40 (diff)
mono-docs: Nicer formatting for notes
This has never been tested because so far EO "Note:" tags are only recognized when they appear at the beginning of a comment block. It turns out the note already includes the "Note:" prefix so we were adding it twice. This patch removes one of the prefixes and used a nicer formatting. Also works for "Warning:", "Remark:" and "TODO:".
-rw-r--r--src/bin/eolian_mono/eolian/mono/documentation.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/documentation.hh b/src/bin/eolian_mono/eolian/mono/documentation.hh
index 7d90e78..2370829 100644
--- a/src/bin/eolian_mono/eolian/mono/documentation.hh
+++ b/src/bin/eolian_mono/eolian/mono/documentation.hh
@@ -273,16 +273,16 @@ struct documentation_generator
273 new_text += token_text; 273 new_text += token_text;
274 break; 274 break;
275 case ::EOLIAN_DOC_TOKEN_MARK_NOTE: 275 case ::EOLIAN_DOC_TOKEN_MARK_NOTE:
276 new_text += "NOTE: " + token_text; 276 new_text += "<b>NOTE:</b>" + token_text.substr(5, token_text.length() - 5);
277 break; 277 break;
278 case ::EOLIAN_DOC_TOKEN_MARK_WARNING: 278 case ::EOLIAN_DOC_TOKEN_MARK_WARNING:
279 new_text += "WARNING: " + token_text; 279 new_text += "<b>WARNING:</b>" + token_text.substr(8, token_text.length() - 8);
280 break; 280 break;
281 case ::EOLIAN_DOC_TOKEN_MARK_REMARK: 281 case ::EOLIAN_DOC_TOKEN_MARK_REMARK:
282 new_text += "REMARK: " + token_text; 282 new_text += "<b>REMARK:</b>" + token_text.substr(7, token_text.length() - 7);
283 break; 283 break;
284 case ::EOLIAN_DOC_TOKEN_MARK_TODO: 284 case ::EOLIAN_DOC_TOKEN_MARK_TODO:
285 new_text += "TODO: " + token_text; 285 new_text += "<b>TODO:</b>" + token_text.substr(5, token_text.length() - 5);
286 break; 286 break;
287 case ::EOLIAN_DOC_TOKEN_MARKUP_MONOSPACE: 287 case ::EOLIAN_DOC_TOKEN_MARKUP_MONOSPACE:
288 new_text += "<c>" + token_text + "</c>"; 288 new_text += "<c>" + token_text + "</c>";