Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltips are badly formatted #788

Closed
Astrantia opened this issue Sep 10, 2018 · 6 comments
Closed

Tooltips are badly formatted #788

Astrantia opened this issue Sep 10, 2018 · 6 comments

Comments

@Astrantia
Copy link
Contributor

Astrantia commented Sep 10, 2018

Warning message (displays well inline in problem pane):
image
Tooltip:

image

@jlelong
Copy link
Collaborator

jlelong commented Sep 12, 2018

I cannot get the warning, an you provide a minimal example?

@Astrantia
Copy link
Contributor Author

Astrantia commented Sep 12, 2018

@jlelong

\documentclass[%
final,% include images
twoside=semi
%]{scrartcl}
]{scrreprt}

\makeatletter
\renewcommand{\chapter}{\@startsection{chapter}{0}{\z@}{-2em}{6pt}{\normalfont\LARGE\bfseries}}
\renewcommand{\section}{\@startsection{section}{1}{\z@}{-1.5em}{6pt}{\normalfont\Large\bfseries}}
\renewcommand{\subsection}{\@startsection{subsection}{1}{\z@}{-1.2em}{6pt}{\normalfont\large\bfseries}}
\renewcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}{-2.25ex \@plus -1ex \@minus -0.2ex}{0.5ex \@plus 0.2ex}{\normalfont\normalsize\bfseries\itshape}}
\makeatother

\begin{document}
\tableofcontents

\chapter[First chapter - short title]{First chapter - long title - here is everything ok}
Some text
\section*{First Section - long title - asterisk poses a problem}
Some further text
\subsection*[First subsection - short title]{First subsection - long title - asterisk poses a problem}
Some more text

\end{document}

@jlelong
Copy link
Collaborator

jlelong commented Sep 13, 2018

There is no way to configure the width of the tooltip, see microsoft/vscode#14165

Hence, we cannot do much about how the message gets wrapped. So far, all lines of a message are joined and then wrapped in the tooltip. The best we can do is to honor line breaks from the original message.

@Astrantia
Copy link
Contributor Author

@jlelong honoring the newlines is all I asked for, thanks.

@Astrantia
Copy link
Contributor Author

@jlelong
image

Newlines are fine now, but aren't these boundaries a little too big? (they look like tabs and I think they're meant to be spaces)

@jlelong
Copy link
Collaborator

jlelong commented Sep 14, 2018

Unfortunately, the boundaries are are coded by the package itself using \ClassWarning which repeatedly calls \@spaces defined as 4 spaces in latex.ltx.
I think we cannot do much about it.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants