Author Single line Thread Preview on main page may be several lines long.
FireFish5000 OP
Developer
Avatar
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:
  • list
  • ul
  • ol
  • h1
  • h2
  • h3
  • h4
  • hr
  • [*]

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.

Most formatting BBCode after the first bugged tag is fully processed.

  • 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.

Non-BBCode does not have any special processing. https://mangadex.org does not create a clickable link unless it is in a url tag.

Examples: images ->
Last edited 11 mo ago by FireFish5000.
FireFish5000 OP
Developer
Avatar
Examples of all posts that would trigger this.

list

This text will most certainly be shortened to something reasonably small and most definitely not continue on forever.
This sentence here has 0.0% chance of showing up in the preview. [list]This will be displayed and completely unshortened despite the fact that the sentence above it was cliped out.[/list]
Anything and everything after the list tag is also displayed. Nothing past it is clipped/shortened, just word wrapped.


ul

This text will most certainly be shortened to something reasonably small and most definitely not continue on forever.
This sentence here has 0.0% chance of showing up in the preview. [ul]This will be displayed and completely unshortened despite the fact that the sentence above it was clipped out.[/ul]
Anything and everything after the ul tag is also displayed. Nothing past it is clipped/shortened, just word wrapped.


ol

This text will most certainly be shortened to something reasonably small and most definitely not continue on forever.
This sentence here has 0.0% chance of showing up in the preview. [ol]This will be displayed and completely unshortened despite the fact that the sentence above it was clipped out.[/ol]
Anything and everything after the ol tag is also displayed. Nothing past it is clipped/shortened, just word wrapped.


h1

This text will most certainly be shortened to something reasonably small and most definitely not continue on forever.
This sentence here has 0.0% chance of showing up in the preview. [h1]This will be displayed and completely unshortened despite the fact that the sentence above it was clipped out.[/h1]
Anything and everything after the h1 tag is also displayed. Nothing past it is clipped/shortened, just word wrapped.



h2

This text will most certainly be shortened to something reasonably small and most definitely not continue on forever.
This sentence here has 0.0% chance of showing up in the preview. [h2]This will be displayed and completely unshortened despite the fact that the sentence above it was clipped out.[/h2]
Anything and everything after the h2 tag is also displayed. Nothing past it is clipped/shortened, just word wrapped.


h3

This text will most certainly be shortened to something reasonably small and most definitely not continue on forever.
This sentence here has 0.0% chance of showing up in the preview. [h3]This will be displayed and completely unshortened despite the fact that the sentence above it was clipped out.[/h3]
Anything and everything after the h3 tag is also displayed. Nothing past it is clipped/shortened, just word wrapped.


h4

This text will most certainly be shortened to something reasonably small and most definitely not continue on forever.
This sentence here has 0.0% chance of showing up in the preview. [h4]This will be displayed and completely unshortened despite the fact that the sentence above it was clipped out.[/h4]
Anything and everything after the h4 tag is also displayed. Nothing past it is clipped/shortened, just word wrapped.


hr

This text will most certainly be shortened to something reasonably small and most definitely not continue on forever.
This sentence here has 0.0% chance of showing up in the preview. [hr]This will be displayed and completely unshortened despite the fact that the sentence above it was clipped out.[/hr]
Anything and everything after the hr tag is also displayed. Nothing past it is clipped/shortened, just word wrapped.
Last edited 1 year ago by FireFish5000.
FireFish5000 OP
Developer
Avatar
Last edited 10 mo ago by FireFish5000.
FireFish5000 OP
Developer
Avatar
[h1][/h1] through [h4][/h4] also seem to do this. Possibly [hr][/hr] as well.
Another post with example below

I swear I don't trigger this on purpose

Happy New Years!



Happy New Year!



Happy

    New Years!



Implicit tag closing: Nested tags implicitly close with their parrent. Closing tags are 100% optional.
For really complex formatting segments, enclosing the segment in [left][/left] could be used to ensure all tags close before the next segment.
[b][i][u]This line has 3 opening tags which are all closed with 1 closing tag[/b]
This line has 3 opening tags which are all closed with 1 closing tag
This isn't normally too useful/needed. But can be done to save a lot of characters for posts with complex formatting.





This line makes use of implicit tag closingeverything is closed by the next tag. a couple hr tags left open bc they really don't have inside content, so there isn't a need to close them



Example of the most evil thing we could possibly do has been moved to this dead (deleted chapter) manga thread https://mangadex.org/thread/71390/1/#post_588992
Summary of it. Misuse of Shiny Spoiler links are not the worst thing we could do.
Uses implicit tag closing to make the post fit within the character limit (which I should probably lookup).
Last edited 10 mo ago by FireFish5000.
Avatar
I'm scared of this power
Avatar
I'm sciired too