Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix screen linebreaks #737

Merged
merged 27 commits into from
Sep 4, 2024
Merged

Fix screen linebreaks #737

merged 27 commits into from
Sep 4, 2024

Conversation

tomschr
Copy link
Collaborator

@tomschr tomschr commented Aug 30, 2024

Searches for <screen> tags in DocBook files and replace misplaced linebreaks.

Tested scenarios:

  • Linebreak between <screen> and text
  • Linebreak between <screen> and entity.
  • Linebreak between <screen> and <prompt>, <replaceable>

Testing

  1. Update/clone this repo.

  2. Switch to the fix-screen branch.

  3. Change directory to your doc repository.

  4. Create an alias and replace the PATH_TO_YOUR_DAPS_REPO with the correct value:

    $ alias fix-screen="PATH_TO_YOUR_DAPS_REPO/python-scripts/fix-screen/bin/fix-screen.py
    
  5. Run:

    $ fix-screen xml/YOUR_XML_FILE.xml
    
  6. Check the diff.

@tomschr tomschr changed the title Fix screen Fix screen linebreaks Aug 30, 2024
@tomschr tomschr merged commit c135de3 into main Sep 4, 2024
2 checks passed
@tomschr tomschr deleted the fix-screen branch September 4, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant