Register | Sign In


Understanding through Discussion


EvC Forum active members: 57 (9189 total)
5 online now:
Newest Member: Michaeladams
Post Volume: Total: 919,032 Year: 6,289/9,624 Month: 137/240 Week: 80/72 Day: 2/3 Hour: 1/1


Thread  Details

Email This Thread
Newer Topic | Older Topic
  
Author Topic:   Making Vertical Spacing of Nested Lists Work
Percy
Member
Posts: 22851
From: New Hampshire
Joined: 12-23-2000
Member Rating: 7.3


Message 1 of 11 (846247)
01-01-2019 2:17 PM


Beginning of post
  • List A Line 1
  • List A Line 2
    • List B Line 1
    • List B Line 2
  • List A Line 3
  • List A Line 4
  • List A Line 5
End of post
Edited by Percy, : No reason given.

Replies to this message:
 Message 2 by dwise1, posted 01-01-2019 4:15 PM Percy has replied

  
dwise1
Member
Posts: 6058
Joined: 05-02-2006
Member Rating: 8.2


Message 2 of 11 (846254)
01-01-2019 4:15 PM
Reply to: Message 1 by Percy
01-01-2019 2:17 PM


Thank you. Such examples are always welcome, but could you please include a bit of explanation for this one?
It appears that you inserting HTML comments -- at least they're the same syntax, though I commonly add a space between the comment tags and the text being commented out -- , though your example appears to start with a close-comment tag right after the first list dBCode.
So part of the questions that come to mind for me would be:
  • Can I still assume that, in general, HTML comment tags would still be used to comment out text? Ie, does the same rule of being able to include HTML tags still work?
  • Does this mean that there are some special comments which provide special functionality?
  • If comments are still comments, special or not, when what's the business about starting this sequence with a close-comment tag?
Thanks again.

This message is a reply to:
 Message 1 by Percy, posted 01-01-2019 2:17 PM Percy has replied

Replies to this message:
 Message 3 by AZPaul3, posted 01-01-2019 7:00 PM dwise1 has not replied
 Message 4 by Percy, posted 01-02-2019 9:17 AM dwise1 has replied

  
AZPaul3
Member
Posts: 8631
From: Phoenix
Joined: 11-06-2006
Member Rating: 8.6


Message 3 of 11 (846260)
01-01-2019 7:00 PM
Reply to: Message 2 by dwise1
01-01-2019 4:15 PM


dwise1 writes:
Thank you. Such examples are always welcome ...
Oh, don't pay any attention to him, dwise1. He's just showing off.

This message is a reply to:
 Message 2 by dwise1, posted 01-01-2019 4:15 PM dwise1 has not replied

  
Percy
Member
Posts: 22851
From: New Hampshire
Joined: 12-23-2000
Member Rating: 7.3


Message 4 of 11 (846267)
01-02-2019 9:17 AM
Reply to: Message 2 by dwise1
01-01-2019 4:15 PM


I'm in the middle of fixing a long standing bug where the spacing around the beginning and end of lists is not consistent. Not sure what you're referring to because there are no HTML comment tags in my message. Did you perhaps see the pre-edit version where a bug let some malformed HTML comment tags creep through?
Here's an example of the bug showing inconsistent vertical spacing, using the unmodified code on this server. It was originally this:
[face=Verdana][noparse]Beginning of list

  [list]
    [*]List A Line 1
    [*]List A line 2
  [/list]

End of list

Beginning of list

  [list]

    [*]List B Line 1

    [*]List B line 2

  [/list]

End of list[/noparse][/face]
But when translated the vertical spacing becomes uneven:
Beginning of list
  • List A Line 1
  • List A line 2
End of list
Beginning of list
  • List B Line 1
  • List B line 2
End of list
I'm fixing the bug over on the cloud server that we'll be moving to soon, but I've got the cloud server using the database here, which is why you're seeing the messages I'm using for debugging. While you'll be able to see my testing, you won't be able to take advantage of any of my fixes until I complete them and install them here in the current software. I originally planned just to get the cloud server going, but then decided I'd just fix this one teensy bug only to discover that it's a little more complicated than I originally projected.
You're right about the code that translates the dBCodes into HTML taking advantage of HTML comments. That's so the original form of the message can be restored for editing purposes. For instance, "[list]" gets translated to this when composing a message or when it's stored in the database:
<!--UB [list] --><ul type=disc><!--UE-->
When a message is edited the original form must be restored. I could have instead stored the entire original message in the database, but I thought that since in most messages the dBCodes are only a small portion that HTML comments added to the original message would take up much less database space. When restoring the message as originally composed with dBCodes the text between UB and UE comments disappears while text embedded in the UB comment is restored, then the comments are removed. A CBR comment is translated to a line break,
, which helps restore the original vertical formatting.
When messages are presented as part of a thread all the HTML comments are filtered out in the interests of efficiency by transmitting fewer characters. This decision was made around 17 years ago, but with today's Internet speeds I'm not sure it matters anymore. But it means if you do "View Page Source" that you should see no HTML comments in the messages. However, while composing a message the HTML comments are left in place and you can use "View Source Code" to get a better idea of how it works. But it's pretty boring stuff, actually. I'm just glad I was able to make it work. dBoard software performs better formatting of messages than other discussion board offerings, like vBulletin.
--Percy

This message is a reply to:
 Message 2 by dwise1, posted 01-01-2019 4:15 PM dwise1 has replied

Replies to this message:
 Message 5 by dwise1, posted 01-02-2019 11:34 AM Percy has replied

  
dwise1
Member
Posts: 6058
Joined: 05-02-2006
Member Rating: 8.2


Message 5 of 11 (846269)
01-02-2019 11:34 AM
Reply to: Message 4 by Percy
01-02-2019 9:17 AM


Not sure what you're referring to because there are no HTML comment tags in my message.
I simply followed SOP for seeing how something was formatted by clicking on the Peek button on your Message 1. What I found was dBCodes with HTML comments mixed in -- I tried to post that with PRE tags, but the comments got commented out except for the mismatched close-comment tags. In order to see what I saw, please click on that Peek button yourself.
I'm fixing the bug over on the cloud server ... dBoard software performs better formatting of messages than other discussion board offerings, like vBulletin.
So then what are you actually doing? Showing us the codes for formatting our lists? Or just running a test for some tinkering you're doing with the forum software? Or something else? Shouldn't you have informed us of the purpose of your Message 1?
When I was in the war (USAF-speak), I maintained a communications system (phased out of service and replaced decades ago). To test the live system, we would send test messages in this format:
quote:
test
test
test
This is a test message.
test
test
test
Something to consider for the future.

This message is a reply to:
 Message 4 by Percy, posted 01-02-2019 9:17 AM Percy has replied

Replies to this message:
 Message 6 by Percy, posted 01-02-2019 4:18 PM dwise1 has not replied

  
Percy
Member
Posts: 22851
From: New Hampshire
Joined: 12-23-2000
Member Rating: 7.3


(1)
Message 6 of 11 (846288)
01-02-2019 4:18 PM
Reply to: Message 5 by dwise1
01-02-2019 11:34 AM


dwise1 writes:
In order to see what I saw, please click on that Peek button yourself.
Oh ho! You've found a bug I already fixed on the cloud server that goes along with the improved formatting I'm adding for LIST. I fixed it for a different reason and didn't realize it also affects peek. I added the bug fix to this server's version of the code, so you won't see any broken commenting with peek now.
So then what are you actually doing? Showing us the codes for formatting our lists? Or just running a test for some tinkering you're doing with the forum software? Or something else?
I'm debugging the code changes for improved list formatting, but I'm making those changes over on the cloud server but using the database over here because I get better testing that way. I'll have the code all debugged before switching the website over to the cloud server.
Shouldn't you have informed us of the purpose of your Message 1?
In retrospect, yes. I figured no one pays serious attention to threads in Practice Makes Perfect, but should have realized that might not be the case when I post there. I considered switching the cloud server back over to its own database while I made the software changes (meaning my messages wouldn't appear here), but I liked the idea of the additional testing I would get by using the database over here.
When I was in the war (USAF-speak), I maintained a communications system (phased out of service and replaced decades ago). To test the live system, we would send test messages in this format:
quote:
test
test
test
This is a test message.
test
test
test
Something to consider for the future.
You're right, of course. Back in the good old days software companies had release engineering departments, and woe to the programmer who violated protocols and just shoved code out directly to customers. My release engineering department (me) has chastised the developer responsible (me), and his boss (me) now has him on a tight leash.
--Percy

This message is a reply to:
 Message 5 by dwise1, posted 01-02-2019 11:34 AM dwise1 has not replied

  
Percy
Member
Posts: 22851
From: New Hampshire
Joined: 12-23-2000
Member Rating: 7.3


Message 7 of 11 (846310)
01-03-2019 9:08 PM


White Space Experiment
Beginning of post
End of post
Edited by Percy, : Add horizontal white space.

  
Percy
Member
Posts: 22851
From: New Hampshire
Joined: 12-23-2000
Member Rating: 7.3


Message 8 of 11 (846373)
01-05-2019 12:39 PM


Beginning of post
  • List A Line 1
  • List A Line 2
    • List B Line 1
    • List B Line 2
  • List A Line 3
  • List A Line 4
  • List A Line 5
End of post

  
Percy
Member
Posts: 22851
From: New Hampshire
Joined: 12-23-2000
Member Rating: 7.3


Message 9 of 11 (846374)
01-05-2019 12:45 PM


Beginning of post
  • List A Line 1
  • List A Line 2
    • List B Line 1
    • List B Line 2
  • List A Line 3
  • List A Line 4
  • List A Line 5
End of post

  
Percy
Member
Posts: 22851
From: New Hampshire
Joined: 12-23-2000
Member Rating: 7.3


Message 10 of 11 (847049)
01-16-2019 2:18 PM


Just a...
...test post

  
Percy
Member
Posts: 22851
From: New Hampshire
Joined: 12-23-2000
Member Rating: 7.3


Message 11 of 11 (847391)
01-22-2019 7:24 AM


blasé

  
Newer Topic | Older Topic
Jump to:


Copyright 2001-2023 by EvC Forum, All Rights Reserved

™ Version 4.2
Innovative software from Qwixotic © 2024