Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2019-05-14 12:39:35 -0400
committerJuergen Haug2019-05-14 12:40:44 -0400
commit7881487a6e88e6ffe9c56a4cdcd12f6ca00d2b22 (patch)
tree8613fab600b6a6de6b3041e62cfc73cd6f2febd1 /plugins
parentc5b04ed1b5df2d06a4d5f49712dc510881ec7475 (diff)
downloadorg.eclipse.etrice-7881487a6e88e6ffe9c56a4cdcd12f6ca00d2b22.tar.gz
org.eclipse.etrice-7881487a6e88e6ffe9c56a4cdcd12f6ca00d2b22.tar.xz
org.eclipse.etrice-7881487a6e88e6ffe9c56a4cdcd12f6ca00d2b22.zip
Bug 546030 - [doc.gen] Improve preview of documentation comments
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.etrice.generator.doc/src/org/eclipse/etrice/generator/doc/gen/AsciiDocGen.xtend10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/org.eclipse.etrice.generator.doc/src/org/eclipse/etrice/generator/doc/gen/AsciiDocGen.xtend b/plugins/org.eclipse.etrice.generator.doc/src/org/eclipse/etrice/generator/doc/gen/AsciiDocGen.xtend
index a714c83c7..9ac832d3a 100644
--- a/plugins/org.eclipse.etrice.generator.doc/src/org/eclipse/etrice/generator/doc/gen/AsciiDocGen.xtend
+++ b/plugins/org.eclipse.etrice.generator.doc/src/org/eclipse/etrice/generator/doc/gen/AsciiDocGen.xtend
@@ -388,7 +388,7 @@ class AsciiDocGen {
| «at.type»
| «at.kind»
| «at.multAsText»
- | «at.docText»
+ a| «at.docText»
«ENDFOR»
|===
'''
@@ -401,7 +401,7 @@ class AsciiDocGen {
| «at.name»
| «at.type.type.name»
- | «at.docText»
+ a| «at.docText»
«ENDFOR»
|===
'''
@@ -415,7 +415,7 @@ class AsciiDocGen {
|«op.name»
| «IF op.returnType !== null»«op.returnType.type.name»«ELSE»void«ENDIF»
| «FOR pa : op.arguments SEPARATOR ", "»«pa.name»: «pa.refType.type.name»«ENDFOR»
- | «op.docText»
+ a| «op.docText»
«ENDFOR»
|===
'''
@@ -497,8 +497,8 @@ class AsciiDocGen {
if(raw === null)
return null;
- switch getMarkupType(raw) {
- case MARKUP_HTML: '''
+ switch type : getMarkupType(raw) {
+ case type == MARKUP_HTML && raw.contains("<"): '''
++++
<div class="paragraph"><p>«trimMarkupTag(raw)»</p></div>
++++

Back to the top