Merge pull request #1121 from costateixeira/master
StructureDef: remove example label when no label is given
This commit is contained in:
commit
3c0fb89cd7
|
@ -2053,7 +2053,7 @@ public class StructureDefinitionRenderer extends ResourceRenderer {
|
||||||
} else if (definition.hasExample()) {
|
} else if (definition.hasExample()) {
|
||||||
for (ElementDefinitionExampleComponent ex : definition.getExample()) {
|
for (ElementDefinitionExampleComponent ex : definition.getExample()) {
|
||||||
if (!c.getPieces().isEmpty()) { c.addPiece(gen.new Piece("br")); }
|
if (!c.getPieces().isEmpty()) { c.addPiece(gen.new Piece("br")); }
|
||||||
c.getPieces().add(checkForNoChange(ex, gen.new Piece(null, "Example'"+("".equals("General")? "" : " "+ex.getLabel()+"'")+": ", null).addStyle("font-weight:bold")));
|
c.getPieces().add(checkForNoChange(ex, gen.new Piece(null, "Example'"+("".equals("General")? "": " "+ex.getLabel()+"'")+": ", "").addStyle("font-weight:bold")));
|
||||||
c.getPieces().add(checkForNoChange(ex, gen.new Piece(null, buildJson(ex.getValue()), null).addStyle("color: darkgreen")));
|
c.getPieces().add(checkForNoChange(ex, gen.new Piece(null, buildJson(ex.getValue()), null).addStyle("color: darkgreen")));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue