Deb Lewis
2006-Jun-02 21:43 UTC
[Masterview-devel] Empty element generation, file locking redux
Jeff,
You''re right, empty elements are fine (<br/>, <hr/>). I
think my brain got
bent out of shape the other night when I was running before-and-after
compares to check that my original .rhtml pages came back after being
shifted into mv templates: one of my original files actually had bogus old
<br> markup, which MV quite nicely fixed to legal <br/> - guess I
forgot
which side of the window was old vs. new.
I do find I miss having the trailing space "<xxx />" in the
markup, though,
per the html compatibility guidelines of xhtml. Maybe I''m just used to
looking at those, but it does make them easier to pick up visually.
What would you think of tweaking Render#simplify_empty_elements to:
ret << '' />'' # nice little trailing space
for visual separation
The problem I''ve seen where editing a template while the app is running
and
subsequently getting a file lock conflict problem seems to be specific to
the HTML editor I use; doesn''t happen when I edit the template file in
a
diff editor.
So action item to me to describe this as a trouble-shooting tip that we can
add to the docs.
~ Deb