Reduce (or apply) maximum lengths for title and synopsis, allowing for character set prefix byte

This commit is contained in:
df 2020-12-31 15:18:03 +00:00
parent 88d3274241
commit 7c4d359aec
1 changed files with 4 additions and 2 deletions

View File

@ -103,6 +103,8 @@ if {[llength $plugins(dmenu)]} {
}
}
# the maxlength values for title and synopsis are 1 less than the maximum to
# allow for an extra byte to indicate character encoding (see rename.jim)
puts {
</ul>
@ -131,7 +133,7 @@ puts {
</th>
<td>
<input type=text name="rename_title" id="rename_title"
value="" size=70 maxlength=48
value="" size=70 maxlength=47
class="text ui-widget-content ui-corner-all">
</td>
</tr>
@ -144,7 +146,7 @@ puts {
</th>
<td>
<textarea name="rename_synopsis" id="rename_synopsis"
value="" cols=70 rows=4
value="" cols=70 rows=4 maxlength=251
class="text ui-widget-content ui-corner-all"></textarea>
</td>
</tr>