Newline escaping disabled for HTML and HTML2 generators (#4099)

* Newline escaping disabled

Newline escaping disabled for HTML and HTML2 generators. Escaping
failing Markdown processors to work correctly on descriptions

* HTML examples updated
This commit is contained in:
Denis Bazhenov
2016-11-01 18:21:30 +10:00
committed by wing328
parent 950a3eb2e8
commit 7e7ca01aa4
4 changed files with 57 additions and 45 deletions

View File

@@ -65,6 +65,12 @@ public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfi
return "html2";
}
@Override
public String escapeText(String input) {
// newline escaping disabled for HTML documentation for markdown to work correctly
return input;
}
@Override
public String getHelp() {
return "Generates a static HTML file.";

View File

@@ -60,6 +60,12 @@ public class StaticHtmlGenerator extends DefaultCodegen implements CodegenConfig
importMapping = new HashMap<String, String>();
}
@Override
public String escapeText(String input) {
// newline escaping disabled for HTML documentation for markdown to work correctly
return input;
}
@Override
public CodegenType getTag() {
return CodegenType.DOCUMENTATION;