VIP
- Joined
- Apr 23, 2018
- Messages
- 1,071
Description: Post Preview generator for the main page barfs on some tags, creating previews several lines long.
Cause:
All of the following bbcode is known to trigger this bug:
[ul][*]list
[*]ul
[*]ol
[*]h1
[*]h2
[*]h3
[*]h4
[*]hr
[*][*]
[/ul]
Note, ALL of these bbcode generate newlines when used.
Scope:
Visible to all visitors on the main page. Stays on the page for at least 10 minutes, longer during periods with few posts.
Symptoms:
A newline is placed before and after the bugged tag.
An empty bugged tag is equivalent to a single line break (newline after merges with the newline before).
Every bullet goes on its own a newline.
Newlines inside and outside bugged tags are not preserved (although the tags themselves generate a newline).
Newlines not generated by tags are still replaced with spaces.
Error occurs whenever a bugged tag is present, even when outside of the normal preview range.
Examples: images ->
Cause:
All of the following bbcode is known to trigger this bug:
[ul][*]list
[*]ul
[*]ol
[*]h1
[*]h2
[*]h3
[*]h4
[*]hr
[*][*]
[/ul]
Note, ALL of these bbcode generate newlines when used.
Scope:
Visible to all visitors on the main page. Stays on the page for at least 10 minutes, longer during periods with few posts.
Symptoms:
A newline is placed before and after the bugged tag.
An empty bugged tag is equivalent to a single line break (newline after merges with the newline before).
Every bullet goes on its own a newline.
Newlines inside and outside bugged tags are not preserved (although the tags themselves generate a newline).
Newlines not generated by tags are still replaced with spaces.
Error occurs whenever a bugged tag is present, even when outside of the normal preview range.
- Text before the first bugged tag is processed normally.
- Text before the first bugged tag is shortened properly, including the end of preview '...'.
- All text AFTER the first bugged tag is word-wrapped, both within and after the tag.
- No text AFTER the first bugged tag is shortened. The preview contains all text AFTER the first bugged tag.
- h1 generates a large header in the preview.
- url generates a clickable link
- img does NOT create an image, but the text placeholder "(image)" instead.
- spoilers are hidden. all content inside of them and the button as well is not displayed.
Examples: images ->
Here are examples of what it looks like on the main page. As you can tell, they are slightly longer than 1 line
Example 1: What's the worst isekai on here and what's the best isekai on here?
(example image defunct)
Example 2: Any Tux users floating about? (Example image screenshotted by @WhoSainT)
Example 1: What's the worst isekai on here and what's the best isekai on here?
(example image defunct)
Example 2: Any Tux users floating about? (Example image screenshotted by @WhoSainT)