The algorithm tries to make the text the same width as the box it’s in, to prevent it going outside (like we see in your pictures). The presence of a period in 1.(abc) signals that a word break is possible here, and as the box is 0pt wide every possible word break is made.
Did you really want a 0pt box, or did you want to achieve having the yellow stroke only on the left side? If so, try:
i want zero width box so later i can use #move inside it (to achieve enum like structure which not misaligned when we have matrix, vector or big symbols | #1204)
Because we currently don’t have a baseline alignment option (in both enum and grid/table).
so how can we prevent word break here(without using another box with pre-fixed width) ? or there more better approach to achieve this
These characters glue together left and right neighbor characters such that they are kept on the same line.
Code point
Character name
2060
WORD JOINER (WJ)
FEFF
ZERO WIDTH NO-BREAK SPACE (ZWNBSP)
The word joiner character is the preferred choice for an invisible character to keep other characters together that would otherwise be split across the line at a direct break. The character FEFF has the same effect, but because it is also used in an unrelated way as a byte order mark, the use of the WJ as the preferred interword glue simplifies the handling of FEFF.
By definition, WJ and ZWNBSP take precedence over the action of SP, but not ZW.