Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
01215300
Commit
01215300
authored
Oct 08, 2006
by
Jörn Zaefferer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed readFile to java-based read function to handle \r\n, fixes docs and test, lite still broken
parent
c26ae24a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
docs.js
build/docs/docs.js
+1
-1
writeFile.js
build/js/writeFile.js
+12
-0
test.js
build/test/test.js
+1
-1
No files found.
build/docs/docs.js
View file @
01215300
...
...
@@ -2,7 +2,7 @@ load("build/js/json.js", "build/js/xml.js", "build/js/writeFile.js", "build/js/p
var
dir
=
arguments
[
1
];
var
c
=
parse
(
read
File
(
arguments
[
0
])
);
var
c
=
parse
(
read
(
arguments
[
0
])
);
output
(
c
,
"docs"
);
c
=
categorize
(
c
);
...
...
build/js/writeFile.js
View file @
01215300
...
...
@@ -5,3 +5,15 @@ function writeFile( file, stream ) {
buffer
.
print
(
stream
);
buffer
.
close
();
}
function
read
(
file
)
{
var
jq
=
new
File
(
file
);
var
reader
=
new
BufferedReader
(
new
FileReader
(
jq
));
var
line
=
null
;
var
buffer
=
new
java
.
lang
.
StringBuffer
(
jq
.
length
());
while
(
(
line
=
reader
.
readLine
())
!=
null
)
{
buffer
.
append
(
line
);
buffer
.
append
(
"
\n
"
);
}
return
buffer
.
toString
();
}
\ No newline at end of file
build/test/test.js
View file @
01215300
...
...
@@ -16,7 +16,7 @@ function addTestWrapper(name, test) {
}
var
dir
=
arguments
[
1
];
var
jq
=
parse
(
read
File
(
arguments
[
0
]
)
);
var
jq
=
parse
(
read
(
arguments
[
0
]
)
);
var
testFile
=
[];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment