Bug 392247 - Structure tree construction does not ignore sectioning within comment environment
Summary: Structure tree construction does not ignore sectioning within comment environ...
Status: REPORTED
Alias: None
Product: kile
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-23 21:53 UTC by Eyal Rozenberg
Modified: 2022-11-18 09:12 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2018-03-23 21:53:28 UTC
I'm  using Kile 2.1.3 (on Mint 18.3).

After everything else in my document (report class), I have the following code:

\begin{comment}
\appendix
\chapter*{Appendix}
\section*{Frobnicate the bar}
Bunch of text here, etc. etc.
\endcomment}

... and this shows up as part of the document structure tree, which it really shouldn't - especially seeing how the comment environment is identified and its contents is grayed-out.

This bug seems very related to bug 63121, which was about line comments (text after the % symbol). However, that one was resolved 15 years ago. In fact, if I add line comments within the comment environment, the appendix and the section disappear from the structure tree; so it really looks like they're treated like a normal part of the document.
Comment 1 Justin Zobel 2022-11-18 04:30:21 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 2 Eyal Rozenberg 2022-11-18 09:12:55 UTC
Still seeing this issue, now with Kile 2.9.93 .