**Twine 1.4.2** ([[http://twinery.org/downloads/twine_1.4.2_win.exe|Windows]], [[http://twinery.org/downloads/twine_1.4.2_osx.zip|OS X]]) is a minor update for Twine 1.4. ======Bugfixes====== =====Development program===== ===Fatal errors=== * Now, building games in non-English locales should no longer get an encoding error caused by the built file's timestamp. Thanks to mth for assistance and Cab for the report. ===StoryIncludes=== * The Story___ passages are no longer forbidden from being included via StoryIncludes. * The StoryIncludes passage is no longer broken on OS X. ===Importing=== * Fixed buggy HTML importing for passages that have ''>'' symbols in their titles. * It is now possible to import from HTML files that use the SugarCube custom header. * Fixed imported images having the wrong MIME-type if their filename extensions were in all-caps (such as "tree.JPG"). * Altered the MIME-type of imported fonts in ttf and otf format to "application/x-font-..." instead of "application/font-...". Also, unrecognised files are now "application/octet-stream". This shouldn't really change anything, but may improve browser support. ===Story Map=== * The position of passages created by right-clicking and selecting "New Passage Here" should be fixed. * Fixed [[passage]] names with full stops no longer failing to have incoming [[Story Map|link arrows]]. * Selecting "New Passage" when a Start passage is missing no longer creates the "Start" passage, since it could be irritating for "partial .tws files" that are being used in a large StoryIncludes project. ===Passage editor=== * Passages with very long names no longer have the left half of their name scrolled out of the title text box when you initially edit them. * The passage editor now has a uniform tab width (set to 4 spaces). * Fixed a bug where HTML wouldn't be highlighted if its tag names or attribute names contained hyphens (e.g. ''
'') =====Game engine===== ===General=== * Built HTML files now have a UTF-8 byte-order mark. This should cause [[http://dropbox.com|Dropbox]] to correctly transmit them with UTF-8 encoding instead of ASCII. Hooray!! * Fixed certain page elements (such as StoryTitle and StoryAuthor) not being drawn at the start of a test play build that begins at a non-Start passage. * Fixed the image preloader code, which didn't detect whitespace correctly, and thus prevented preloading images in HTML tags that had a space between "src" and "=". ===Syntax=== * You should now be able to put a ] character inside the link syntax (e.g. %%[[<<$obj[0].x>>|Passage name]]%%) and put a quoted "%%>>%%" inside the macro syntax (e.g. %%<>" >>%% ). * Shorthand [[<>]]: variable default was causing $vars provided as arguments to mess up horridly. This should fix this. * Raw HTML entities (such as   or < or somesuch) are now correctly preserved, rather than being converted to their symbols during the build process. ===Generated HTML=== * Previously, charspans (that's the ''%%%%'' element wrapped around individual text characters for the purposes of CSS effects) had the classes "char" and a second one representing the char contents - for instance, "v" for lowercase v. But, having a single-character classname for charspans is causing some collisions with certain Firefox extensions. Now, the character is stored in a data-char attribute, so CSS can still potentially select it by, e.g. ''.char[data-char=v]'' . * Also, charspans are no longer generated if the story's text or stylesheets do not contain the ".char" or "[data-char]" selectors anywhere. * %%