Skip to content

Newlines Trimmed from Company Address on Final Invoice #39

@lmolent

Description

@lmolent

Current Behavior:

When a multi-line company address is entered into the company settings (e.g., using a carriage return/Enter key for proper postal formatting), the system saves the address but strips all newline characters (\n or \r\n) when rendering the final PDF or print invoice. This results in the entire address block being concatenated into a single, continuous line of text.

Expected Behavior:

The system should respect and preserve the manual line breaks (\n) entered by the user.
The final invoice should display the address exactly as entered, typically formatted over 3 to 5 distinct lines, to ensure proper postal formatting and legibility.

Steps To Reproduce:

Navigate to Settings $\rightarrow$ Company Information (or equivalent section for defining the Sender Address). Enter a legally registered company address using multiple lines (press Enter/Return after each line):

Example Company Name Ltd.
123 Technology Drive
Suite 500
Cityname, ZipCode, Country

Save the settings.
Create a New Invoice (or regenerate an old one). View or download the final invoice document (e.g., PDF).

Actual Result (Example):

The company address on the generated invoice appears as one continuous string:

Example Company Name Ltd. 123 Technology Drive Suite 500 Cityname, ZipCode, Country

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions