Permalink
Browse files

HTML Tidying

  • Loading branch information...
1 parent 5c301d5 commit fd9a62e93b9bea2ae570493cf4896fd8d99b968b Andre Carregal committed Nov 22, 2004
Showing with 140 additions and 160 deletions.
  1. +84 −92 doc/us/index.html
  2. +56 −68 doc/us/license.html
View
@@ -1,126 +1,127 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
-
<head>
+<meta name="generator" content="HTML Tidy, see www.w3.org">
<title>Lua Virtual Environment</title>
<style type="text/css">
ul { list-style-type: disc };
</style>
</head>
-
<body bgcolor="#FFFFFF">
-
<center>
-<table border=0 cellspacing=2 cellpadding=2>
-<tr><td align=center><a href="http://www.keplerproject.org">
-<img border=0 alt="VEnv" src="venv.png"></a>
-<tr><td align=center><big><b>VEnv</b></big>
-<tr><td align=center valign=top>Lua Virtual Environment
+<table border="0" cellspacing="2" cellpadding="2">
+<tr>
+<td align="center"><a href="http://www.keplerproject.org"><img
+border="0" alt="VEnv" src="venv.png"></a> </td>
+</tr>
+
+<tr>
+<td align="center"><big><b>VEnv</b></big> </td>
+</tr>
+
+<tr>
+<td align="center" valign="top">Lua Virtual Environment</td>
+</tr>
</table>
</center>
-<p>
-<center><small>
-<a href="#over">overview</a> &middot;
-<a href="#download">download</a> &middot;
-<a href="#examples">examples</a>
-</small></center>
-<p>
+<center><small><a href="#over">overview</a> &middot; <a href=
+"#download">download</a> &middot; <a href=
+"#examples">examples</a></small></center>
<hr>
<h2>Contents</h2>
-<p>
+
<ul>
- <li> <a href="#over">Overview</a>
- <li> <a href="#version">Current Version</a>
- <li> <a href="#download">Download</a>
- <li> <a href="#examples">Examples</a>
- <li> <a href="#credits">Credits</a>
- <li> <a href="#contact">Contact us</a>
+<li><a href="#over">Overview</a></li>
+
+<li><a href="#version">Current Version</a></li>
+
+<li><a href="#download">Download</a></li>
+
+<li><a href="#examples">Examples</a></li>
+
+<li><a href="#credits">Credits</a></li>
+
+<li><a href="#contact">Contact us</a></li>
</ul>
-<a name="over"></a>
+<a name="over"></a>
+
<h2>Overview</h2>
-<p>
-Lua Virtual Environment is a simple library which provides a way to execute
-a Lua function in a separate environment, protecting the original one.
-<p>
-VEnv is free software and uses the same
-<a href="license.html">license</a>
-as Lua 5.0.
+<p>Lua Virtual Environment is a simple library which provides a way
+to execute a Lua function in a separate environment, protecting the
+original one.</p>
+
+<p>VEnv is free software and uses the same <a href=
+"license.html">license</a> as Lua 5.0. <a name="version"></a></p>
-<a name="version"></a>
<h2>Current version</h2>
-<p>
-Current version is 1.0 beta.
-It was developed for Lua 5.0 and Lua 5.1.
-</p>
+<p>Current version is 1.0 beta. It was developed for Lua 5.0 and
+Lua 5.1.</p>
+
+<a name="download"></a>
-<a name="download"></a>
<h2>Download</h2>
-<p>
-VEnv is a Lua library and consists of a single file:
-<a href="venv.lua">venv.lua</a>
-<p>
-VEnv follows the
-<a href="http://www.keplerproject.org/compat">package proposal</a>
-for Lua 5.1,
-therefore this package should be "installed".
-In other words,
-if you are using Lua 5.0,
-the file <tt>compat-5.1.lua</tt> must be installed in the <tt>LUA_PATH</tt>.
-If you are using Lua 5.1,
-nothing should be done.
+<p>VEnv is a Lua library and consists of a single file: <a href=
+"venv.lua">venv.lua</a></p>
+
+<p>VEnv follows the <a href=
+"http://www.keplerproject.org/compat">package proposal</a> for Lua
+5.1, therefore this package should be "installed". In other words,
+if you are using Lua 5.0, the file <tt>compat-5.1.lua</tt> must be
+installed in the <tt>LUA_PATH</tt>. If you are using Lua 5.1,
+nothing should be done.</p>
<h2>What's new</h2>
-<p>
+
<ul>
- <li>[?/?/2004] Version 1.0 beta released
- <li>[19/Jul/2004] Version 1.0 alpha released
-</ul>
+<li>[?/?/2004] Version 1.0 beta released</li>
+<li>[19/Jul/2004] Version 1.0 alpha released</li>
+</ul>
-<a name="reference">
<h2>Reference</h2>
-<p>
-VEnv provides a single function to do its job:
+<p>VEnv provides a single function to do its job:</p>
+
<ul>
- <li> <b><code>venv (func) => function</code></b> <br>
- Creates a new function which is the virtual environment to execute the
- given function. The given function has its environment changed to a
- specially created one which will inherit any global variable from the
- original environment. Function <code>venv</code> returns the new virtual
- environment created.
+<li><b><code>venv (func) =&gt; function</code></b><br>
+ Creates a new function which is the virtual environment to execute
+the given function. The given function has its environment changed
+to a specially created one which will inherit any global variable
+from the original environment. Function <code>venv</code> returns
+the new virtual environment created.</li>
</ul>
+<a name="examples"></a>
-<a name="examples"></a>
<h2>Examples</h2>
-<p>
-Suppose the file <tt>script.lua</tt> is as follows:
+<p>Suppose the file <tt>script.lua</tt> is as follows:</p>
+
<pre>
x = "inside"
assert((x == "inside"), "error setting/accessing variable x inside VEnv", x)
assert((os.execute == nil), "os.execute should not be allowed")
var = 1
</pre>
-<p>
-And here is the main chunk which will execute the above script inside a
-Virtual Environment.
+<p>And here is the main chunk which will execute the above script
+inside a Virtual Environment.</p>
+
<pre>
require"venv"
t1 = { t2 = { t3 = "ok" } }
x = "outside"
function sb ()
- assert ((t1.t2.t3 == "ok"), "error accessing multi-indexed variable")
- os.execute = nil
- loadfile ("script.lua")()
+ assert ((t1.t2.t3 == "ok"), "error accessing multi-indexed variable")
+ os.execute = nil
+ loadfile ("script.lua")()
end
local prot = venv (sb)
@@ -130,36 +131,27 @@
assert ((os.execute ~= nil), "VEnv modified external environment!")
</pre>
+<a name="credits"></a>
-<a name="credits"></a>
<h2>Credits</h2>
-<p>
-VEnv was designed by Roberto Ierusalimschy, Ana L&uacute;cia de Moura,
-Andr&eacute; Carregal and Tom&aacute;s Guisasola as part of
-<a href="http://www.keplerproject.org">The Kepler Project</a>
-which holds its copyright.
-It was implemented by Ana L&uacute;cia de Moura.
-</p>
+<p>VEnv was designed by Roberto Ierusalimschy, Ana L&uacute;cia de
+Moura, Andr&eacute; Carregal and Tom&aacute;s Guisasola as part of
+<a href="http://www.keplerproject.org">The Kepler Project</a> which
+holds its copyright. It was implemented by Ana L&uacute;cia de
+Moura.</p>
+<a name="contact"></a>
-<a name="contact"></a>
<h2>Contact us</h2>
-<p>
-For more information please
-<a href="mailto:info-NO-SPAM-THANKS@keplerproject.org">contact us</a>.
-Comments are welcome!
-</p>
-
+<p>For more information please <a href=
+"mailto:info-NO-SPAM-THANKS@keplerproject.org">contact us</a>.
+Comments are welcome!</p>
-
-<p>
<hr>
-<small>
-$Id: index.html,v 1.5 2004-11-11 13:39:57 tomas Exp $
-</small>
-
+<small>$Id: index.html,v 1.5 2004/11/11 13:39:57 tomas Exp
+$</small>
</body>
</html>
View
@@ -1,79 +1,67 @@
-<! See Copyright Notice at the end of this file>
-<HTML>
-<HEAD>
-<TITLE>VEnv: license</TITLE>
-</HEAD>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<html>
+<head>
+<meta name="generator" content="HTML Tidy, see www.w3.org">
+<title>VEnv: license</title>
+</head>
+<body bgcolor="#FFFFFF">
+<hr>
+<h1>License</h1>
-<BODY BGCOLOR="#FFFFFF">
+VEnv is free software: it can be used for both academic and
+commercial purposes at absolutely no cost. There are no royalties
+or GNU-like "copyleft" restrictions. VEnv qualifies as <a href=
+"http://www.opensource.org/docs/definition.html">Open Source</a>
+software. Its licenses are compatible with <a href=
+"http://www.gnu.org/licenses/gpl.html">GPL</a>. VEnv is not in the
+public domain and <a href="http://www.keplerproject.org">The Kepler
+Project</a> keep its copyright. The legal details are below.
-<HR>
-<H1>
-License
-</H1>
+<p>The spirit of the license is that you are free to use VEnv for
+any purpose at no cost without having to ask us. The only
+requirement is that if you do use VEnv, then you should give us
+credit by including the appropriate copyright notice somewhere in
+your product or its documentation.</p>
-VEnv
-is free software:
-it can be used for both academic and commercial purposes at absolutely no cost.
-There are no royalties or GNU-like "copyleft" restrictions.
-VEnv qualifies as
-<A HREF="http://www.opensource.org/docs/definition.html">Open Source</A>
-software.
-Its licenses are compatible with
-<A HREF="http://www.gnu.org/licenses/gpl.html">GPL</A>.
-VEnv is not in the public domain and
-<a href="http://www.keplerproject.org">The Kepler Project</a>
-keep its copyright.
-The legal details are below.
-<P>
-
-The spirit of the license is that
-you are free to use VEnv for any purpose at no cost without having to ask us.
-The only requirement is that
-if you do use VEnv,
-then you should give us credit by including the appropriate copyright notice
-somewhere in your product or its documentation.
-<P>
-
-The VEnv library is designed and implemented
-by
-Roberto Ierusalimschy,
-Ana L&uacute;cia de Moura,
-Andr&eacute; Carregal and
-Tom&aacute;s Guisasola.
-The implementation is not derived from licensed software.
-<P>
+<p>The VEnv library is designed and implemented by Roberto
+Ierusalimschy, Ana L&uacute;cia de Moura, Andr&eacute; Carregal and
+Tom&aacute;s Guisasola. The implementation is not derived from
+licensed software.</p>
+<p>
<!-- ===================================================================== -->
-<HR>
-Copyright &copy; 2004 The Kepler Project.
-<P>
+</p>
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-<P>
+<hr>
+Copyright &copy; 2004 The Kepler Project.
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-<P>
+<p>Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use, copy,
+modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:</p>
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-<P>
+<p>The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.</p>
+<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.</p>
+
+<p>
<!-- ===================================================================== -->
-<HR>
-<SMALL>
-$Id: license.html,v 1.3 2004-08-12 04:13:19 tomas Exp $
-</SMALL>
+</p>
+
+<hr>
+<small>$Id: license.html,v 1.3 2004/08/12 04:13:19 tomas Exp
+$</small>
+</body>
+</html>
-</BODY>
-</HTML>

0 comments on commit fd9a62e

Please sign in to comment.