Report Bugs Here

Moderator: Mmiscool

User avatar
By raintime
#49803 I can't insert the html line:
wprint |<a>href="my_link.com">my link text</a>|
into the page being generated without needing to wait for user intervention. I could not make this link work. Using an html command did not help.
User avatar
By forlotto
#49846 wprint |<a href="http://my_link.com">my link text</a>|

above would be the correct way to write it....

I have tried that and can confirm it does not work!

Interesting though maybe the html/css stuff has to do with the complex math routines added trying to handle greater than and less than signs in specific.
User avatar
By raintime
#51408 I see why this does not work.

Consider the test program:

print "hi"
wprint |<a href="http://www.yahoo.com">xx</a>|
print "there"

When this program is run, the output is:
____________
hixx
___________
there
___________
Done...


By inspecting the input file using Chrome (after running the file, right click in the browser window and select 'inspect', then select 'Sources' and then look at the 'input' file - [to make it pretty, click between the two curly braces { } at the bottom], you will see what the browser has received:

<meta name="viewport" content="width=device-width, initial-scale=1.0"><script src='WebSockets.js'>
</script><script src='/file?file=widgets.js.gz'>
</script><hr>hi<a�href="http://www.yahoo.com">xx</a><hr>there<hr>Done...

The problem is the funny black diamond character with the question mark in its middle. When I go to

http://www.w3schools.com/html/html_links.asp

and then (in the "tryout editor") put in the program with this funny character, it too, does NOT print the hyperlink:

<!DOCTYPE html>
<html>
<body>

<p>><hr>hi<a�href="http://www.yahoo.com">xx</a><hr>there</p

</body>
</html>

BUT, when I replace the funny diamond character with question mark with a SPACE, the hyperlink prints out perfectly.

SO THIS IS THE SOURCE OF THE BUG.
User avatar
By forlotto
#51452 Excellent observation! I think this may help possibly lets see what mmiscool has to say on this issue!