MantisBT - Documentation, Examples, and Web Site
View Issue Details
0000235Documentation, Examples, and Web SiteWriting with Informpublic2010-08-05 19:032010-10-29 09:23
Tristano 
graham 
normalcosmeticalways
closedfixed 
x86WindowsXP
6E72 
6F95 
0000235: Layout problem in "Writing with Inform": no wrap-up of text
In Chapter 9.2 (Time / Awarding points) ...

The beta notice ("In previous builds, Inform had a special phrase for adding to the score..."): the box that follows (grey with dotted red border) does not wrap up the text so, in order to view the full box, I have to expand the documentation window.

That's all ... just a style-sheet problem.

Tristano (Italy)
No tags attached.
Issue History
2010-08-05 19:03TristanoNew Issue
2010-08-05 19:13TristanoNote Added: 0000381
2010-08-06 15:56jmcgrewPrioritylow => normal
2010-08-06 15:56jmcgrewStatusnew => acknowledged
2010-08-06 15:56jmcgrewPlatformWindows XP Home Ed. SP3 Italian => x86
2010-08-06 17:25EmacsUserNote Added: 0000383
2010-08-06 17:25EmacsUserStatusacknowledged => confirmed
2010-08-29 06:55emshortAssigned To => DavidK
2010-08-30 02:38jmcgrewProjectDocumentation, Examples, and Web Site => Windows Inform application
2010-08-30 02:38jmcgrewCategoryWriting with Inform => User Interface
2010-08-31 06:31grahamStatusconfirmed => assigned
2010-10-02 09:42DavidKNote Added: 0000652
2010-10-02 09:43DavidKNote Edited: 0000652bug_revision_view_page.php?bugnote_id=0000652#r279
2010-10-02 09:44DavidKNote Added: 0000653
2010-10-02 09:44DavidKProjectWindows Inform application => Core Inform
2010-10-02 09:45DavidKProjectCore Inform => Documentation, Examples, and Web Site
2010-10-02 09:46DavidKCategoryUser Interface => Writing with Inform
2010-10-02 09:46DavidKAssigned ToDavidK => graham
2010-10-02 13:39grahamNote Added: 0000655
2010-10-02 13:39grahamStatusassigned => resolved
2010-10-02 13:39grahamResolutionopen => fixed
2010-10-29 09:23jmcgrewFixed in Version => 6F95
2010-10-29 09:23jmcgrewStatusresolved => closed

Notes
(0000381)
Tristano   
2010-08-05 19:13   
PS: I provided Chapter 9.2 as an example, but the no wrap-up problem shows up with all Beta notes in boxes in the book!
(0000383)
EmacsUser   
2010-08-06 17:25   
Actually, this is a problem with the Windows IDE. The text is wrapping, but its enclosing box extends slightly off the right side of the screen, and so words are sometimes cut off.

Jesse, could you move this to the IDE project?
(0000652)
DavidK   
2010-10-02 09:42   
(edited on: 2010-10-02 09:43)
The underlying problem here is that the WebBrowser control used to show HTML (which is effectively Internet Explorer) is in IE5 quirks mode. This is because the HTML for the documentation doesn't have a "!doctype" declaration at the start.

Really all the HTML in Inform 7 should have a "!doctype" (as should all HTML these days): IE isn't alone into going into a "quirks" mode if one isn't found.

The solution is to go through the indoc and i7 sources for any places where HTML files are started: searching for "<html><head>" is a good start. Before the "<html>" bit a "!doctype" declaration should be written out (HTML4 should be good enough), so that the HTML looks like

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> [^]
<html><head>

This should be done for all platforms, not just Windows. As it involves changing indoc and the i7 compiler, I'm re-assigning to Graham.

(0000653)
DavidK   
2010-10-02 09:44   
Note that Mantis has slightly messed up the declaration of the doctype example, but hopefully it should be clear what needs to be done.
(0000655)
graham   
2010-10-02 13:39   
I have applied the 4.01 transitional doctype to all the HTML pages seen within Inform - documentation, index, problems, run-time problems, and so on.