DISQUS

fortes.com: Collapsed Spaces Around <Run />

  • Mike B. · 2 years ago
    I'm sure there is probably a very good reason, but why would WPF not recognize spaces between tags? Seems to ignore the idea that spaces are characters too. Are you an anti-spacite?
  • Fortes · 2 years ago
    Mike -- Did you ask this question just so you could use that joke?

    The WPF parser is quirky when it comes to collapsing spaces around tags, and honestly, I don't know all the rules (been a long time since I worked there, I guess).
  • Sheva · 2 years ago
    Actually you can preserve the white spaces between element tag using the following trick:


    Sheva
  • Mike B. · 2 years ago
    fil - well, yeah... partially.

    It's always bothered me that 1 or more spaces/tabs in HTML only ever get translated to 1 space. I realize that it's probably to prevent stupid users from creating whitespace-based layouts, and also to allow the source to be formatted to be easily read without affecting the rendered page. But doing so seems to create confusion and also rounds the edges off of what should be a more strict document interpretation.
  • Rob Relyea · 2 years ago
    Fil-
    I can't repro. See: http://rrelyea.spaces.live.com/blog/cns!167AD7A...
    Thx, Rob
  • Fortes · 2 years ago
    Run is stripped. Try:

    <pre>ParagraphRunHello /RunRun World/Run/Paragraph</pre>