Skip to content

Bug/Output Format #56

@AaronChen11

Description

@AaronChen11

Issue Description(Bug)

The current translation output for multi-line comment blocks is rendered as one long line or a big chunk, losing the original line breaks and indentation. This makes the translated view hard to read and misaligned with the source.

Examples:

Image Image

Describe the solution you'd like

Preserve layout fidelity for every translated comment, ensuring it maintains the same number of lines as the original comment block, preserves indentation and spacing (including double/multiple spaces), and does not translate or reflow code-like lines inside comments; they should be masked as a single ITHI_CODE####_ token and restored after translation.

Describe alternatives you've considered
Let translators reflow text and try to re-split lines heuristically afterward.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions