8000 Fix for CSS attribute at Profiler Translation Page · Issue #22107 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Fix for CSS attribute at Profiler Translation Page #22107
Closed
@you-ser

Description

@you-ser
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.2.2

File: symfony/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/translation.html.twig

Problem: If you have 2+ spaces between words at message for translation e.g. Post__Header ('_' is space) browser show it with one space Post Header (in browser console you can see all spaces but browser render it with white-space:normal; default rule) and if you copy message from Profiler page it will be with one space too.

Solution: At macro render_table last 2 columns "Message ID" and "Message Preview" should have css rule

white-space: pre;

which can be added with some class at file
symfony/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0