NATION

PASSWORD

Dispatch formatting

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Naivetry
Ambassador
 
Posts: 1294
Founded: Aug 02, 2006
Left-wing Utopia

Dispatch formatting

Postby Naivetry » Mon Jan 16, 2017 10:32 am

Pardon my OCD, but I just finished my first formatting-intensive dispatch, and noticed a couple of super minor things that it would be nice to have fixed. I'm running Chrome on Windows, if that makes a difference.

1) Putting an alignment tag inside a table moves the text closer to the bottom of the cell. In the screenshot, the left-hand column doesn't have an alignment tag; the others columns are centered. Notice that the vertical position of the text in the left-hand column is, very nicely, in the exact middle of the row. In the other columns, the text has slipped down to just above the bottom of the cell. This makes your rows look awfully sloppy if you have any mixture of columns with and without an alignment tag.

Image

Example:
Code: Select all
[table][tr][td]Event[/td][td][center]Most Survivors[/center][/td][td][center]With No Infected[/center][/td][td][center]Most Dead[/center][/td][/tr]
[tr][td][url=https://www.nationstates.net/page=zday_tally_April_2013]Z1 (April 2013)[/url][/td][td][center]#1[/center][/td][td] [/td][td] [/td][/tr]
[tr][td][url=https://www.nationstates.net/page=zday_tally_October_2013]Z2 (October 2013)[/url][/td][td][center]#3[/center][/td][td] [/td][td] [/td][/tr]
[tr][td][url=https://www.nationstates.net/page=zday_tally_October_2014]Z3 (October 2014)[/url][/td][td][center]#20[/center][/td][td][center]#13[/center][/td][td][center]#32[/center][/td][/tr]
[tr][td][url=https://www.nationstates.net/page=zday_tally_October_2015]Z4 (October 2015)[/url][/td][td][center]#18[/center][/td][td][center]#12[/center][/td][td] [/td][/tr]
[tr][td][url=https://www.nationstates.net/page=zday_tally]Z5 (October 2016)[/url][/td][td][center]#5[/center][/td][td][center]#3[/center][/td][td] [/td][/tr][/table]


It's not just the center tag. Here's the same text, with a tag for align=left inserted into the left-hand column (plus a tab to keep the text from smushing flush to the left of the cell).The drop to the bottom of the cell is consistent across each row, now, but I'd prefer for the text to sit in the vertical middle of the cell.

Image

Code: Select all
[table][tr][td][align=left][tab=10]Event[/tab][/align][/td][td][center]Most Survivors[/center][/td][td][center]With No Infected[/center][/td][td][center]Most Dead[/center][/td][/tr]
[tr][td][align=left][tab=10][url=https://www.nationstates.net/page=zday_tally_April_2013]Z1 (April 2013)[/url][/tab][/align][/td][td][center]#1[/center][/td][td] [/td][td] [/td][/tr]
[tr][td][align=left][tab=10][url=https://www.nationstates.net/page=zday_tally_October_2013]Z2 (October 2013)[/url][/tab][/align][/td][td][center]#3[/center][/td][td] [/td][td] [/td][/tr]
[tr][td][align=left][tab=10][url=https://www.nationstates.net/page=zday_tally_October_2014]Z3 (October 2014)[/url][/tab][/align][/td][td][center]#20[/center][/td][td][center]#13[/center][/td][td][center]#32[/center][/td][/tr]
[tr][td][align=left][tab=10][url=https://www.nationstates.net/page=zday_tally_October_2015]Z4 (October 2015)[/url][/tab][/align][/td][td][center]#18[/center][/td][td][center]#12[/center][/td][td] [/td][/tr]
[tr][td][align=left][tab=10][url=https://www.nationstates.net/page=zday_tally]Z5 (October 2016)[/url][/tab][/align][/td][td][center]#5[/center][/td][td][center]#3[/center][/td][td] [/td][/tr][/table]


2) When included within a table, the first paragraph of quoted text (e.g., from a RMB post) is aligned further left by default than subsequent paragraphs in the quote.

Image

Code: Select all
[table][tr][td] [/td][/tr]
[tr][td][quote=nornheim;22137556]Nornheim Strategic Command has had a lovely sleep-in, but apparently some citizens decided to go out and get zombiefied anyway. Words will be had once said citizens stop gnawing on anyone trying to have those words with them.

Research on this season's strain has commenced. Assistance in keeping hordes under control appreciated in the mean time.[/quote][/td][/tr][/table]
Last edited by [violet] on Tue Jan 17, 2017 3:55 pm, edited 1 time in total.

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Tue Jan 17, 2017 3:59 pm

Ooh, pretty.

Unfortunately both of these issues aren't possible to fix (easily) without breaking a lot of existing dispatches, as I discovered last month.

User avatar
Naivetry
Ambassador
 
Posts: 1294
Founded: Aug 02, 2006
Left-wing Utopia

Postby Naivetry » Tue Jan 17, 2017 4:11 pm

[violet] wrote:Ooh, pretty.

Unfortunately both of these issues aren't possible to fix (easily) without breaking a lot of existing dispatches, as I discovered last month.

Aw, sadness. I guess my OCD will have to look the other way. :P Thanks for the response!

User avatar
Zeklandia
Lobbyist
 
Posts: 11
Founded: Mar 13, 2015
Scandinavian Liberal Paradise

Postby Zeklandia » Fri Oct 05, 2018 9:03 pm

I just encountered this issue. Is there not any way to stop it from inserting a paragraph before the alignment tag?

User avatar
Trotterdam
Postmaster-General
 
Posts: 10541
Founded: Jan 12, 2012
Left-Leaning College State

Postby Trotterdam » Fri Oct 05, 2018 9:37 pm

Simple solution: allow a [td=center] tag separate from the [center] tag. That's how actual HTML does it, anyway (<td align="center">).

User avatar
Enfaru
Minister
 
Posts: 2921
Founded: Apr 20, 2012
Ex-Nation

Postby Enfaru » Sat Oct 06, 2018 4:37 am

Zeklandia wrote:I just encountered this issue. Is there not any way to stop it from inserting a paragraph before the alignment tag?


There are other tags that do exactly the same thing...like [background-block].
Sovereign Charter Quick Links
Factbook · Role-plays · RMB · Map (Origin | Quantum) · Chat · Members: 73
Myraxia: One does not learn to GM; One throws oneself in and prays they don't fuck up too badly.
Game Master
Founder of the Sovereign Charter,
4th President and,
Tutor of the College of Theatrics


Return to Technical

Who is online

Users browsing this forum: Costavozka, Denjina, Entropan, Grand Bohemia, Midworld, South Vestburg, Valenera, Western Thostevrilona

Advertisement

Remove ads