levelNum = Integer.parseInt(rawLevelNum);
} catch (NumberFormatException nfe) {
log.debug("Could not parse heading level from: " + styleName);
}
String text = Paragraph.stripFields(paragraph.text());
if ('\r' == text.charAt(text.length() - 1)) {
text = text.substring(0, text.length() - 1);
}