You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add translate="no" attribute to block literal templates
This commit adds the `translate="no"` attribute to block literal templates to prevent machine translation tools from attempting to translate content within literal blocks.
Literal blocks are typically used for command output, log files, and other pre-formatted text where exact spacing and formatting must be preserved.
Changes include:
- Added `translate="no"` attribute to the <pre> element in block_literal.html.erb
- Added a comprehensive test in htmlbook_spec.rb to verify the attribute is correctly applied to literal blocks delimited with `....`
This change complements the previous commits that added the same attribute to:
1. Inline code elements (via inline_quoted.html.erb)
2. Code blocks (via block_listing.html.erb)
Together, these changes ensure that all code-like content throughout the documentation is excluded from translation by browser-based translation tools and other translation
services, preserving the integrity of code examples, command output, and other technical content.
0 commit comments