We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://wiki.wesnoth.org/Sandbox/GUI/Getting_Started#Building_a_Tree uses <syntaxhighlight lang=lua line>, and clicking it selects
<syntaxhighlight lang=lua line>
1local function basic_tree_view() 2 local tree_view = wml.tag.tree_view { 3 id = "monsters_tv", 4 ...
Expected behaviour would be excluding line numbers. Proof of concept solution (chrome):
$(".cb-icon").click(function(event) { var e = $(this).parents(".codebox").children("pre")[0]; let textResult = ""; for (node of e.childNodes){ if(typeof node.getAttribute !== "function" || node.getAttribute("class") !== "linenos"){ let currentText = node.innerText || node.nodeValue; if (currentText) { textResult += currentText; } } } navigator.clipboard.writeText(textResult); });
The text was updated successfully, but these errors were encountered:
I do not get line numbers in the copied text in either chrome, firefox or safari.
Sorry, something went wrong.
I believe @CelticMinstrel fixed it soon after I reported it
I fixed it by editing the Common.css page on the wiki. There might be a better fix in the style itself.
No branches or pull requests
https://wiki.wesnoth.org/Sandbox/GUI/Getting_Started#Building_a_Tree uses
<syntaxhighlight lang=lua line>
, and clicking it selectsExpected behaviour would be excluding line numbers. Proof of concept solution (chrome):
The text was updated successfully, but these errors were encountered: