Here's the string produced by my code in both TWC & TW5:
@@.bridgetable
|||||||||♠|T|5|3|
|||||||||!♥|Q|J|8|
|||||||||!♦|A|J|T|7|
|||||||||♣|Q|8|3|
|♠|K|4|||||||⌈|N|⌉||||||♠|Q|J|7|6|5|3|
|!♥|A|T|3||||||W| | ||||||!♥|K|T|9|4|
|!♦|K|T|8|5|4|||| | |E||||||!♦|2|
|♣|T|9|2||||||⌊|S|⌋||||||♣|K|4|
|||||||||♠|A|5|
|||||||||!♥|6|4|3|
|||||||||!♦|Q|8|4|
|||||||||♣|A|J|5|3|2|
@@
The only difference is in TWC the ! is replaced by @@color:red@@.
The CSS in both cases is the same:
.bridgetable tr:first-child th {color:red;text-align:center;}
.bridgetable td {background-color:white;}
.bridgetable {border-color:green;border-width:10px;}
.bridgetable th {background-color:white;color:red;}
.bridgetable,
.bridgetable td,
.bridgetable tr,
.bridgetable th
{ border:0 !important; margin:0 !important; padding:0px !important;
text-align:center; }
Presumably the reason they show up differently is that the wikifier in TWC &
TW5 converts the string to different HTML.
On Friday, 24 February 2017 20:44:48 UTC+11, BJ wrote:
>
> Its difficult to say what the problem might be without see the code...
>
> all the best
> BJ
>
> On Friday, February 24, 2017 at 4:42:38 AM UTC+1, tejjyid wrote:
>>
>> I have a table produced by a macro that looks slightly wonky under TW5.
>>
>>
>>
>>
>> <https://lh3.googleusercontent.com/-Xe6VYuCgMys/WK-ofMrIl5I/AAAAAAAAYzA/dp8igpx0l2sh5__W55HMXGfZiSnXTXBXwCLcB/s1600/TW5-format.jpg>
>>
>>
>> You can see the odd spacing in the North cards; most clearly perhaps in
>> the contrast between the erratic spacing of N's diamonds and the tight,
>> even spacing of East's clubs. This is actually an improved version thanks
>> to "text-align:center". The TWC version - from a string which *should be in
>> all material respects identical - looks much more even, withouth any CSS
>> intervantion from me.
>>
>>
>> <https://lh3.googleusercontent.com/-d2OSbPEOnCw/WK-p0rpJKeI/AAAAAAAAYzU/J7ZYOy_3E_Y5Db3_KXa0bbn1_I9A1UrRQCLcB/s1600/TWC-format.jpg>
>> * I know these words mean little; I had to change the string because TW5
>> doesn't easily support cell-level CSS, but all that involved was removing
>> some inline CSS wrapping from the red suit symbols and repacing it with an
>> "!" so I could switch the colour via tableheader. There are *no* gratuitous
>> spaces in the underlying string.
>>
>> ** I wouldn't necessarily believe me either, but I have checked.
>>
>> I can certainly live with the problem, but I'd like to eliminate it if
>> possible.
>>
>> Cheers
>>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/bd493bdb-0bb0-4f22-bd54-902856475ac8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.