Eelis / cxxdraft-htmlgen

Generates https://eel.is/c++draft
Other
168 stars 13 forks source link

Broken or unsightly iref links after line breaks after cplusplus/draft#5151 #102

Closed ecatmur closed 1 year ago

ecatmur commented 1 year ago

(moved from https://github.com/cplusplus/draft/issues/6504)

After https://github.com/cplusplus/draft/pull/5151, some iref links are broken or unsightly where the iref parameter list extends across a line break; for example, https://github.com/cplusplus/draft/blob/1c22d62180901069128b21daa2773d40566bd983/source/basic.tex#L600-L601 renders as:

an expression is converted (either implicitly or explicitly) to type T ([conv], [expr.type.conv], [ expr.dynamic.cast], [expr.static.cast], [expr.cast]), or

and https://github.com/cplusplus/draft/blob/1c22d62180901069128b21daa2773d40566bd983/source/basic.tex#L3725-L3726 as:

the operand of a cast or conversion ([conv.integral], [ expr.type.conv], [expr.static.cast], [expr.cast]) to an unsigned ordinary character type or std​::​byte type ([cstddef.syn]), or

In the first case, the iref to expr.dynamic.cast has unsightly extra space but the link works, but in the second case the link to expr.type.conv is itself broken, having extra spaces within the link target, probably because the second case is indented.

Eelis commented 1 year ago

Thanks for the report!