From 9e0f9f2ee7f854665c6fbf442ea8339bbce17ecb Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 24 Feb 2009 11:43:13 +0000 Subject: Escape-sequence validation in place (for nodes). --- regress/test.escape.00 | 20 ++++++++++++++++++++ regress/test.escape.01 | 20 ++++++++++++++++++++ regress/test.escape.02 | 20 ++++++++++++++++++++ regress/test.escape.03 | 20 ++++++++++++++++++++ regress/test.escape.04 | 20 ++++++++++++++++++++ regress/test.list.05 | 2 +- 6 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 regress/test.escape.00 create mode 100644 regress/test.escape.01 create mode 100644 regress/test.escape.02 create mode 100644 regress/test.escape.03 create mode 100644 regress/test.escape.04 (limited to 'regress') diff --git a/regress/test.escape.00 b/regress/test.escape.00 new file mode 100644 index 00000000..28df79e5 --- /dev/null +++ b/regress/test.escape.00 @@ -0,0 +1,20 @@ +.\" +.Dd $Mdocdate$ +.Dt mdoc 3 +.Os +.\" +.Sh NAME +.Nm mdoc_free +.Nd mdoc macro compiler library +.\" +.Sh SYNOPSIS +Valid escape: \(ab +Valid escape: \[d] +Valid escape: \[dsdfajsdflaksjfhalksjdfh__----] +Valid escape: \\ +Valid escape: \e +Valid escape: \` +Valid escape: \' +Valid escape: \. +Valid escape: \- +Valid escape: \ diff --git a/regress/test.escape.01 b/regress/test.escape.01 new file mode 100644 index 00000000..2bf37cf6 --- /dev/null +++ b/regress/test.escape.01 @@ -0,0 +1,20 @@ +.\" +.Dd $Mdocdate$ +.Dt mdoc 3 +.Os +.\" +.Sh NAME +.Nm mdoc_free +.Nd mdoc macro compiler library +.\" +.Sh SYNOPSIS +Valid escape: \(ab +Valid escape: \[d] +Valid escape: \[dsdfajsdflaksjfhalksjdfh__----] +Valid escape: \\ +Valid escape: \e +Valid escape: \` +Valid escape: \' +Valid escape: \. +Valid escape: \- +Invalid escape: \" diff --git a/regress/test.escape.02 b/regress/test.escape.02 new file mode 100644 index 00000000..1c727a8f --- /dev/null +++ b/regress/test.escape.02 @@ -0,0 +1,20 @@ +.\" +.Dd $Mdocdate$ +.Dt mdoc 3 +.Os +.\" +.Sh NAME +.Nm mdoc_free +.Nd mdoc macro compiler library +.\" +.Sh SYNOPSIS +Valid escape: \(ab +Valid escape: \[d] +Valid escape: \[dsdfajsdflaksjfhalksjdfh__----] +Valid escape: \\ +Valid escape: \e +Valid escape: \` +Valid escape: \' +Valid escape: \. +Valid escape: \- +Invalid escape: \( diff --git a/regress/test.escape.03 b/regress/test.escape.03 new file mode 100644 index 00000000..7fa92ecd --- /dev/null +++ b/regress/test.escape.03 @@ -0,0 +1,20 @@ +.\" +.Dd $Mdocdate$ +.Dt mdoc 3 +.Os +.\" +.Sh NAME +.Nm mdoc_free +.Nd mdoc macro compiler library +.\" +.Sh SYNOPSIS +Valid escape: \(ab +Valid escape: \[d] +Valid escape: \[dsdfajsdflaksjfhalksjdfh__----] +Valid escape: \\ +Valid escape: \e +Valid escape: \` +Valid escape: \' +Valid escape: \. +Valid escape: \- +Invalid escape: \ diff --git a/regress/test.escape.04 b/regress/test.escape.04 new file mode 100644 index 00000000..a393ab83 --- /dev/null +++ b/regress/test.escape.04 @@ -0,0 +1,20 @@ +.\" +.Dd $Mdocdate$ +.Dt mdoc 3 +.Os +.\" +.Sh NAME +.Nm mdoc_free +.Nd mdoc macro compiler library +.\" +.Sh SYNOPSIS +Valid escape: \(ab +Valid escape: \[d] +Valid escape: \[dsdfajsdflaksjfhalksjdfh__----] +Valid escape: \\ +Valid escape: \e +Valid escape: \` +Valid escape: \' +Valid escape: \. +Valid escape: \- +Invalid escape: \[ diff --git a/regress/test.list.05 b/regress/test.list.05 index 18540423..08954e84 100644 --- a/regress/test.list.05 +++ b/regress/test.list.05 @@ -6,5 +6,5 @@ .Nd description .Sh DESCRIPTION .Bl -column "xxxxx" "xxxxx" -.It d \ e f +.It d \ e f .El -- cgit