As a general rule, if you use a fixed-width font for labels and other widgets, it will be easier to get things to line up nicely. If you must use proportional fonts, you either have to accept some limitations on alignment, or else you have to do a lot more work to enforce the alignment you want.

Update: What I mean is: Perl/Tk does not really truncate or reduce consecutive spaces in the text of a label widget, but when using a proportional font, the spaces are narrower than most characters, whereas with a fixed-width font, such as "courier", every space counts for the same width as any other character, so labels with text strings like the following will come out the same width when displayed with a courier font:

"one two" "three four"

In reply to Re: Perl Tk Spaces in Text of Labels by graff
in thread Perl Tk Spaces in Text of Labels by merrymonk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.