summaryrefslogtreecommitdiff
path: root/tests/root/objects.txt
diff options
context:
space:
mode:
authorRob Ruana <rob@relentlessidiot.com>2013-06-23 16:06:45 -0400
committerRob Ruana <rob@relentlessidiot.com>2013-06-23 16:06:45 -0400
commit2cc4dcca8a7d0a4095c31992d5d91c8c6b6e02de (patch)
treea561028d95faf368fd18a4e68c040af3f4693907 /tests/root/objects.txt
parent2a5619b21e130d74710c717340ca52ffc516e793 (diff)
downloadsphinx-2cc4dcca8a7d0a4095c31992d5d91c8c6b6e02de.tar.gz
Fix #1203: Does not append space to unknown field names.
If an unknown field name is encountered, a space is only appended if the field arguments are not empty. Also, only the first character of the field name is upper cased, and the case of the rest of the string remains unchanged.
Diffstat (limited to 'tests/root/objects.txt')
-rw-r--r--tests/root/objects.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/root/objects.txt b/tests/root/objects.txt
index 533bdae3..57e82212 100644
--- a/tests/root/objects.txt
+++ b/tests/root/objects.txt
@@ -7,6 +7,32 @@ Testing object descriptions
.. function:: func_without_body()
+.. function:: func_with_unknown_field()
+
+ : :
+
+ : empty field name:
+
+ :field_name:
+
+ :field_name all lower:
+
+ :FIELD_NAME:
+
+ :FIELD_NAME ALL CAPS:
+
+ :Field_Name:
+
+ :Field_Name All Word Caps:
+
+ :Field_name:
+
+ :Field_name First word cap:
+
+ :FIELd_name:
+
+ :FIELd_name PARTial caps:
+
.. function:: func_noindex
:noindex: