Remove whitespace from table of contents #189

This commit is contained in:
mhutti1 2017-07-10 22:15:03 +01:00 committed by Isaac Hutt
parent 63dda78e61
commit fe6aceb667

View File

@ -32,11 +32,11 @@ public class DocumentParser {
@SuppressWarnings("unused")
public void parse(final String sectionTitle, final String element, final String id) {
if (element.equals("H1")) {
title = sectionTitle;
title = sectionTitle.trim();
return;
}
DocumentSection section = new DocumentSection();
section.title = sectionTitle;
section.title = sectionTitle.trim();
section.id = id;
int level;
try {