Tag alignment

Is something wrong? Do you have any suggestions? Let us know.
Post Reply
User avatar
Joaz Banbeck
Judan
Posts: 5546
Joined: Sun Dec 06, 2009 11:30 am
Rank: 1D AGA
GD Posts: 1512
Kaya handle: Test
Location: Banbeck Vale
Has thanked: 1080 times
Been thanked: 1434 times

Tag alignment

Post by Joaz Banbeck »

I'd like to see closing delimiters in the same column as opening delimiters. ( In this instance, I think that means at the beginning of a new line. )

This is ok:


TAG_TYPE_1
misc stuff
TAG_TYPE_2
more misc stuff which might be a really really really long sentence.
CLOSE_TAG_2
other misc text
more misc stuff which can be arbitrarily long but doesn't affect readability.
CLOSE_TAG_1


This is a pain in the rear:


TAG_TYPE_1
misc stuff
TAG_TYPE_2
more misc stuff which happens to be very long so you don't see the closing tag. CLOSE_TAG_2
other misc text
more misc stuff which also happens to be rather long. CLOSE_TAG_1


The two posts have the same logic, but the first is much easier to read. I can write a post in the first style, and when I edit it, the editor transposes it into the second style. :sad:
Help make L19 more organized. Make an index: https://lifein19x19.com/viewtopic.php?f=14&t=5207
User avatar
Harleqin
Lives in sente
Posts: 921
Joined: Sat Mar 06, 2010 10:31 am
Rank: German 2 dan
GD Posts: 0
Has thanked: 401 times
Been thanked: 164 times

Re: Tag alignment

Post by Harleqin »

I actually like this better:


Code: Select all

    TAG_TYPE_1
      misc stuff
      TAG_TYPE_2
        more misc stuff which happens to be very long so you don't see the closing tag. CLOSE_TAG_2
      other misc text
      more misc stuff which also happens to be rather long. CLOSE_TAG_1
 



However, I think that the "source code" of the postings should simply not be changed, so that anyone can have it his way.

(On a related but off topic note, I think that XML-style named close tags are completely redundant and superfluous, anyway. Just to be clear, the original design of HTML should have been like this:


Code: Select all

    <TAG_TYPE_1|
      misc stuff
      <TAG_TYPE_2|
        more misc stuff which happens to be very long so you don't see the closing tag.>
      other misc text
      more misc stuff which also happens to be rather long.>
 



in my opinion.)
A good system naturally covers all corner cases without further effort.
Post Reply