Skip to content

GIFT 36 fix contact manual line breaking - #507

Open
nacnudus wants to merge 2 commits into
mainfrom
GIFT-36-fix-contact-manual-line-breaking
Open

nacnudus wants to merge 2 commits into
mainfrom
GIFT-36-fix-contact-manual-line-breaking

Conversation

@nacnudus

@nacnudus nacnudus commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

There is no documented difference between 'contact' and 'address' blocks, besides the div class being 'contact' rather than 'address'.

A practical difference is that the 'contact' block requires manual line breaks, either as trailing double spaces, or trailing double backslashes. The 'address' block does not require manual line breaks. This difference confuses users, and leads to rendered contact blocks having visible backslashes on the website.

This commit changes the way that 'contact' blocks are treated, making it equivalent to 'address' blocks except that it omits the tag <div class="adr org fn">. This means that 'contact' blocks no longer require manual line breaks, but still support them as before.

Tests of 'address' blocks have been duplicated and adapted to test 'contact' blocks. No existing tests have been meaningfully altered.

So that the tests of the address $A block are together.
There is no documented difference between 'contact' and 'address'
blocks, besides the div class being 'contact' rather than 'address'.

A practical difference is that the 'contact' block requires manual line
breaks, either as trailing double spaces, or trailing double
backslashes. The 'address' block does not require manual line breaks.
This difference confuses users, and leads to rendered contact blocks
having visible backslashes on the website.

This commit changes the way that 'contact' blocks are treated, making it
equivalent to 'address' blocks except that it omits the tag
`<div class="adr org fn">`.

This means that 'contact' blocks no longer require manual line breaks,
but still support them as before.

Tests of 'address' blocks have been duplicated and adapted to test
'contact' blocks. No existing tests have been meaningfully altered.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant