Skip to content

Bug: PDF formatting issue when having to long source blocks #2530

@CMon

Description

@CMon

Describe the bug

If the source block happens to be on top of a page break the grey bar on the left is not respecting the page margins.

To Reproduce

create the following files:

main.sdoc:

[DOCUMENT]
TITLE: long source

[TEXT]
STATEMENT: Main file

[REQUIREMENT]
UID: REQ-003
TITLE: one
STATEMENT: >>>
long source content:

    i++

    i++

    i++

    i++

    i++

    i++

    i++

    i++

    i++

    i++

    i++

    i++

    i++

    i++

    i++

    i++

    i++

    i++

    i++
<<<

strictdoc_config.py:

from strictdoc.core.project_config import ProjectConfig

def create_config() -> ProjectConfig:
    config = ProjectConfig(
        project_title = "POC Bug",
        project_features = [
            "SEARCH",
            "HTML2PDF",
        ],
        server_host = "localhost",
        server_port = 5000,
    )
    return config

using the current --pre strictdoc from #2503 with the current Dockerfile:
docker run --rm -v $(pwd):/data -e HOST_UID=$(id -u) -e HOST_GID=$(id -g) -p 5000:5000 -it strictdoc:latest /bin/bash -c 'cd /data && strictdoc export . --output-dir output --formats html2pdf'

Expected behavior

no grey boarder in footer and header

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions