Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Issue with the .bn command #99

Open
okrick opened this issue Sep 7, 2024 · 0 comments
Open

Issue with the .bn command #99

okrick opened this issue Sep 7, 2024 · 0 comments

Comments

@okrick
Copy link

okrick commented Sep 7, 2024

When the .bn command is used within a .nr block, an unwanted newline character is often inserted into the resulting text file. This can disrupt the formatting of text, especially in cases like poems where the line breaks are crucial.

For example, the following code snippet:

.nf b
This is a poem
.bn 1.png
This is the next line of the poem.
.nf-

might produce the following output:

This is a poem

This is the next line of the poem.

This issue doesn't consistently arise in all poems with page breaks, but it's a recurring problem that can be addressed using the .sr command: .sr tB ~\.bn \d+\.png~~. However, a more ideal solution would be to prevent this issue from occurring in the first place.

PS: I recall seeing this with tables in previous projects.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant