Skip to content

Hover when autocompleting shows <pre> and </pre> in the text #30

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

Closed
micaelgallego opened this issue Mar 12, 2016 · 2 comments
Closed

Hover when autocompleting shows <pre> and </pre> in the text #30

micaelgallego opened this issue Mar 12, 2016 · 2 comments
Milestone

Comments

@micaelgallego
Copy link

image

@micaelgallego
Copy link
Author

Debugging the code I found that hover info is formatted in HTML with the following content:

<html><head><style CHARSET="ISO-8859-1" TYPE="text/css">/* Font definitions */
html         { font-family: 'Ubuntu',sans-serif; font-size: 9pt; font-style: normal; font-weight: normal; }
body, h1, h2, h3, h4, h5, h6, p, table, td, caption, th, ul, ol, dl, li, dd, dt { font-size: 1em; }
pre          { font-family: monospace; }

/* Margins */
body         { overflow: auto; margin-top: 0px; margin-bottom: 0.5em; margin-left: 0.3em; margin-right: 0px; }
h1           { margin-top: 0.3em; margin-bottom: 0.04em; }  
h2           { margin-top: 2em; margin-bottom: 0.25em; }
h3           { margin-top: 1.7em; margin-bottom: 0.25em; }
h4           { margin-top: 2em; margin-bottom: 0.3em; }
h5           { margin-top: 0px; margin-bottom: 0px; }
p            { margin-top: 1em; margin-bottom: 1em; }
pre          { margin-left: 0.6em; }
ul           { margin-top: 0px; margin-bottom: 1em; margin-left: 1em; padding-left: 1em;}
li           { margin-top: 0px; margin-bottom: 0px; } 
li p         { margin-top: 0px; margin-bottom: 0px; } 
ol           { margin-top: 0px; margin-bottom: 1em; margin-left: 1em; padding-left: 1em; }
dl           { margin-top: 0px; margin-bottom: 1em; }
dt           { margin-top: 0px; margin-bottom: 0px; font-weight: bold; }
dd           { margin-top: 0px; margin-bottom: 0px; }

/* Styles and colors */
a:link       { color: #0000FF; }
a:hover      { color: #000080; }
a:visited    { text-decoration: underline; }
a.header:link    { text-decoration: none; color: #ffffff }
a.header:visited { text-decoration: none; color: #ffffff }
a.header:hover   { text-decoration: underline; color: #000080; }
h4           { font-style: italic; }
strong       { font-weight: bold; }
em           { font-style: italic; }
var          { font-style: italic; }
th           { font-weight: bold; }

/* Workarounds for new Javadoc stylesheet (1.7) */ 
ul.blockList li.blockList, ul.blockListLast li.blockList {
    list-style:none;
}
ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast {
    list-style:none;
}

/**
 * TypeScript use /n, etc for the quickInfo/@displayString
*/
pre.displayString { font-family: sans-serif; font-size: 1em; }
</style>
</head>

<body text="#ffffff" bgcolor="#101010">
    <pre class="displayString">(method) AppComponent.method(): number</pre>
</body>

</html>

It is possible that HTMLViewer used to display TypeScript information is not able to manage <pre> tags?

@angelozerr
Copy link
Owner

@micaelgallego don't losse your time with that, this issue is because the work is not finished.

@angelozerr angelozerr added this to the 1.0.0 milestone May 17, 2016
angelozerr pushed a commit that referenced this issue May 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants