https://bugs.kde.org/show_bug.cgi?id=477645

            Bug ID: 477645
           Summary: KATE Document Preview Plugin only displaying plain
                    text for HTML
    Classification: Applications
           Product: kate
           Version: 21.12.3
          Platform: Debian stable
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: plugin-preview
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: pokingvic...@protonmail.com
  Target Milestone: ---

Created attachment 163556
  --> https://bugs.kde.org/attachment.cgi?id=163556&action=edit
On the left is the Document rendering as expected in Konquerorr using WebEngine
as expected. On the right is Kate with the file open, with the preview pane
failing to behave as expected.

Hopefully this is something easy to fix. Just would like to preface with my
infinite gratitude for the fine people of the various KDE projects.

SUMMARY

When opening an HTML file with Kate, using the Document Preview Plugin, it does
not work as expected. The Preview pane merely shows the file in its naked
state, not rendering anything. Essentially just a copy of the code in the mane
pane. I have tried manually setting it to HTML but with no such luck. I have
also made sure I am on the right character set. I have opened the file in
Konquerer and the file renders as expected, and since the preview pane uses the
same engine to render this is puzzling. I notice that if you open the file
directly from the preview pane, it sends you to a temporary file. In my
instance this is "/tmp/kate.qLUkQt". You will notice the extension is not
.html, I imagine this has a lot to do with the confusion of the preview pane. I
have not found a way to redirect the preview pane to the actual file instead of
this temporary file, nor should I really have to do that. Hopefully I am not
just making a dumb mistake, but I feel like this should be pretty
straightforward.

Observe the included screenshot. On the left is the Document rendering as
expected in Konquerorr using WebEngine as expected. On the right is Kate with
the file open, with the preview pane failing to behave as expected.

STEPS TO REPRODUCE
1. Activate Document Preview Plugin (which is included, at least in Debian)
2. Restart Kate for good measure
3. Open HTML or HTM File

OBSERVED RESULT

Plain black on white text in the preview pane, as if WebEngine loaded a text
file.

EXPECTED RESULT

A rendered HTML Document being displayed in the Preview Pane

Linux:  Debian Stable
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to