ASCII art diagram converter: Difference between revisions

m (J: bugfix)
Line 167:
currentBits, code, currentName);
if (bitCountPerRow == 0)
bitCountPerRow = cast(uint) (line.length - 1) / cWidth;
else
assert(bitCountPerRow == (line.length - 1) / cWidth);
Line 193:
// At this point, line does not include the first
// C.pipe, but the length will include the last.
currentBits += cast(uint) line.length / cWidth;
 
line = line[$ .. $];