stathissideris / ditaa

ditaa is a small command-line utility that can convert diagrams drawn using ascii art ('drawings' that contain characters that resemble lines like | / - ), into proper bitmap graphics.
GNU Lesser General Public License v3.0
924 stars 87 forks source link

Boxes and their included text are not aligned properly. #56

Open awschult opened 4 years ago

awschult commented 4 years ago

I am trying to generate a picture for the following diagram:

+-----------------------------------------------+
|15|14|13|12|11|10| 9| 8| 7| 6| 5| 4| 3| 2| 1| 0|
+-----------------------------------------------+

The image that is displayed is the following: image

This could probably be fixed under issue #38 or something similar.

dakusui commented 4 years ago

I'm guessing what you would do is following, with -E option of ditaa.

+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
|15|14|13|12|11|10| 9| 8| 7| 6| 5| 4| 3| 2| 1| 0|
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

And if you want to center a text in each cell on top of that, it will be a duplicate of #38 , I think.