Hi, Attached are two one-liner patches. One adds hyperref to the manual so that the table of contents shows up correctly in PDF readers (very handy if you spend much time jumping around in the manual as I do), the other fixes an InvalidArc exception when one gives "file" directives in one's project file that contain slashes in the local filename.
Cheers.
signature.asc
Description: PGP signature
# HG changeset patch # User Julian Squires <[email protected]> # Date 1429875802 14400 # Fri Apr 24 07:43:22 2015 -0400 # Node ID 71ffef11dcecab7ece83af488975d9799bc29951 # Parent 7b508cd0dbf98dbe782d1027b9f56331bcca59c0 Use hyperref in manual This allows the table of contents to show up properly in PDF readers. diff -r 7b508cd0dbf9 -r 71ffef11dcec doc/manual.tex --- a/doc/manual.tex Sun Apr 12 14:28:27 2015 -0400 +++ b/doc/manual.tex Fri Apr 24 07:43:22 2015 -0400 @@ -9,6 +9,8 @@ \newcommand{\rcut}{\; \texttt{-{}-} \;} \newcommand{\rcutM}{\; \texttt{-{}-{}-} \;} +\usepackage{hyperref} + \begin{document} \title{The Ur/Web Manual}
# HG changeset patch # User Julian Squires <[email protected]> # Date 1429876307 14400 # Fri Apr 24 07:51:47 2015 -0400 # Node ID ef778f9e2d3b9d3dd00ae2bf6080c84e87bd4b6f # Parent 71ffef11dcecab7ece83af488975d9799bc29951 Allow file directives to contain slashes Previously, adding a line such as "file /c/foo.css css/foo.css" would cause the compiler to raise an InvalidArc exception. diff -r 71ffef11dcec -r ef778f9e2d3b src/settings.sml --- a/src/settings.sml Fri Apr 24 07:43:22 2015 -0400 +++ b/src/settings.sml Fri Apr 24 07:51:47 2015 -0400 @@ -876,7 +876,7 @@ fun addFile {Uri, LoadFromFilename} = let - val path = OS.Path.mkAbsolute {relativeTo = !filePath, path = LoadFromFilename} + val path = OS.Path.concat (!filePath, LoadFromFilename) in case SM.find (!files, Uri) of SOME (path', _) =>
-- Julian Squires
_______________________________________________ Ur mailing list [email protected] http://www.impredicative.com/cgi-bin/mailman/listinfo/ur
