From dfd4b66c48106edfcbdd1b32e733640e2587acbb Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Thu, 3 Dec 2009 12:21:55 +0000 Subject: documentation: Fix bugs introduced in the SGML to XML transition In the transition from SGML to XML (several releases ago), bugs were introduced in the documentation, for instance "\n" replaced by newlines. Correct those bugs. Also correct double backslashes. They seem to have been introduced very early in the development of OTP. According to Lars they "solved" a bug in the generation of HTML &c. Now that standard tools are used instead of docbuilder, the bug has become visible. --- lib/stdlib/doc/src/filename.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/stdlib/doc/src/filename.xml') diff --git a/lib/stdlib/doc/src/filename.xml b/lib/stdlib/doc/src/filename.xml index 3a6c5e0b60..0cf82fa48b 100644 --- a/lib/stdlib/doc/src/filename.xml +++ b/lib/stdlib/doc/src/filename.xml @@ -37,7 +37,7 @@ is meant all strings that can be used to denote a file. They can be short relative names like foo.erl, very long absolute name which include a drive designator and directory names like - D:\\usr/local\\bin\\erl/lib\\tools\\foo.erl, or any variations + D:\usr/local\bin\erl/lib\tools\foo.erl, or any variations in between.

In Windows, all functions return file names with forward slashes only, even if the arguments contain back slashes. Use @@ -173,7 +173,7 @@ name() = string() | atom() | DeepList 14> filename:dirname("kalle.erl"). "." -5> filename:dirname("\\\\usr\\\\src/kalle.erl"). % Windows +5> filename:dirname("\\usr\\src/kalle.erl"). % Windows "/usr/src" @@ -228,7 +228,7 @@ name() = string() | atom() | DeepList 18> filename:join(["a/b///c/"]). "a/b/c" -6> filename:join(["B:a\\\\b///c/"]). % Windows +6> filename:join(["B:a\\b///c/"]). % Windows "b:a/b/c" @@ -259,7 +259,7 @@ name() = string() | atom() | DeepList "/usr/local/bin" 7> filename:nativename("/usr/local/bin/"). % Windows -"\\\\usr\\\\local\\\\bin" +"\\usr\\local\\bin" @@ -329,7 +329,7 @@ name() = string() | atom() | DeepList ["/","usr","local","bin"] 25> filename:split("foo/bar"). ["foo","bar"] -26> filename:split("a:\\\\msdev\\\\include"). +26> filename:split("a:\\msdev\\include"). ["a:/","msdev","include"] -- cgit v1.2.3