Skip to content

New Wikitext file template doesn’t match expected content #2688

@MusmusIRQ

Description

@MusmusIRQ

⚠️ This issue respects the following points: ⚠️

  • This is a bug. Not a question or feature request.
  • The topic is not already reported at Issues. (I've searched it).
  • Markor is up to date. See Releases for the latest version. Updates are available from F-Droid and GitHub.
  • The bug is still present in the latest development version (git master). (Please download and try the test version of Markor, named Marder. Don't worry; Markor and Marder appear as completely separate applications. You can install both side-by-side, and Markor settings are not touched. In case the issue is resolved there, you don't need to create a bug report. The change will be part of the next Markor update.)

Description

Expected:
The template matches the canonical wikitext header defined in the tests (see WikitextFileTests.java).
Actual:
The test fails with a ComparisonFailure, indicating the generated document differs from the expected header (extra/missing lines or formatting). The mismatch needs to be reconciled either by adjusting the template or the test expectations.

Steps to reproduce

  1. Run ./gradlew testFlavorDefaultDebugUnitTest (or open a new wikitext file through the app’s “New file” dialog).
  2. Trigger creation of the default wikitext document.
  3. Observe the generated file contents.

Information

Android version:
Device: macOS
App Version: latest

Source

F-Droid

Format / File type

Not specific

Additional info / Log

-

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions