Skip to content

fix: add missing backside tables to fallback lang ODT template#2899

Merged
sydseter merged 1 commit into
OWASP:masterfrom
Adarshkumar0509:fix/bridge-qr-remaining-issues-2133
Apr 29, 2026
Merged

fix: add missing backside tables to fallback lang ODT template#2899
sydseter merged 1 commit into
OWASP:masterfrom
Adarshkumar0509:fix/bridge-qr-remaining-issues-2133

Conversation

@Adarshkumar0509
Copy link
Copy Markdown
Contributor

@Adarshkumar0509 Adarshkumar0509 commented Apr 29, 2026

Description

Ensure TableBackQR10 and TableBackQR11 are inserted in the correct position in the fallback _lang.odt template, matching the layout of all other language-specific templates.

When an invalid language code is used (e.g. pt-br instead of pt_br), the converter falls back to the _lang.odt template. Previously thistemplate was missing the backside tables after the last card pages, causing incorrect layout in the generated documents.

Closes #2133

AI Tool Disclosure

  • My contribution does not include any AI-generated content
  • My contribution includes AI-generated content, as disclosed below:
    • AI Tools: [e.g. GitHub CoPilot, ChatGPT, JetBrains Junie etc.]
    • LLMs and versions: [e.g. GPT-4.1, Claude Haiku 4.5, Gemini 2.5 Pro etc.]
    • Prompts: [Summarize the key prompts or instructions given to the AI tools]

Affirmation

Ensure TableBackQR10 and TableBackQR11 are inserted in the correct
position in the fallback _lang.odt template, matching the layout of
all other language-specific templates.

Closes OWASP#2133
@Adarshkumar0509
Copy link
Copy Markdown
Contributor Author

Adarshkumar0509 commented Apr 29, 2026

Hi @sydseter, I have added the missing backside tables (TableBackQR10 and TableBackQR11) to the fallback _lang.odt template in the correct position, matching the layout of all other language-specific templates. Please take a look when you have time!
Note: When using the correct language codes (pt_br, no_nb with underscore), the documents generate perfectly with correct layout. The placeholder variables only appear when using wrong codes (pt-br, no-nb with hyphen) which is expected since the fallback template is generic. what do you think?
image
i have shared the screenshot

@Adarshkumar0509
Copy link
Copy Markdown
Contributor Author

these failures are unrelated to my pr

@sydseter sydseter merged commit 2efa6c3 into OWASP:master Apr 29, 2026
12 of 14 checks passed
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.

Fix the layout on the guide templates

2 participants