Make sure all code lines are within a 100 characters
This commit is contained in:
@@ -71,7 +71,9 @@ class ToMarkdown(Tokenizer):
|
||||
# The text can now be word wrapped, if we have requested this and it's needed.
|
||||
if self.wordWrap > 0 and tLen > self.wordWrap:
|
||||
if tType == self.T_COMMENT:
|
||||
tText = textwrap.fill(tText.strip(),initial_indent=" ",subsequent_indent=" ")
|
||||
tText = textwrap.fill(
|
||||
tText.strip(),initial_indent=" ",subsequent_indent=" "
|
||||
)
|
||||
else:
|
||||
tText = tWrap.fill(tText)
|
||||
|
||||
|
||||
@@ -203,7 +203,8 @@ class Tokenizer():
|
||||
xLen = rxMatch.capturedLength(n)
|
||||
fmtPos.append([xPos,xLen,theKeys[n]])
|
||||
|
||||
# Save the line as is, but append the array of formatting locations sorted by position
|
||||
# Save the line as is, but append the array of formatting locations
|
||||
# sorted by position
|
||||
fmtPos = sorted(fmtPos,key=itemgetter(0))
|
||||
self.theTokens.append((self.T_TEXT,aLine,fmtPos,self.A_LEFT))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user