copyWhite(fWhiteStart, fWhiteStartPosition, 1);
fWhiteStart = false;
- int startHeadPosition = fCurrentPosition;
+ int startHeadPosition = fCurrentPosition-1;
if (readUntilEOL()) {
// TODO not correct - improve this
String head = new String(fSource, startHeadPosition, fCurrentPosition - startHeadPosition);
- int index = head.indexOf(": ");
+ int index = head.indexOf(" : ");
if (index > 0) {
fResultBuffer.append("<dl><dt>");
fResultBuffer.append(head.substring(0, index));
- fResultBuffer.append("</dt><dd>");
+ fResultBuffer.append(" </dt><dd>");
fResultBuffer.append(head.substring(index + 2));
fResultBuffer.append("</dd></dl>");
} else {
fResultBuffer.append("<dl><dt>");
fResultBuffer.append(head);
- fResultBuffer.append("</dt></dl>");
+ fResultBuffer.append(" </dt></dl>");
}
continue;
}