From 9081bddbd75e4e8994ca243c820ca63387bd33f7 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 3 Oct 2020 16:16:51 +0200 Subject: Improve vs. formatting in the documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SQL commands are generally marked up as , except when a link to a reference page is used using . But the latter doesn't create monospace markup, so this looks strange especially when a paragraph contains a mix of links and non-links. We considered putting in the on the target side, but that creates some formatting side effects elsewhere. Generally, it seems safer to solve this on the link source side. We can't put the inside the ; the DTD doesn't allow this. DocBook 5 would allow the to have the linkend attribute itself, but we are not there yet. So to solve this for now, convert the s to plus . This gives the correct look and also gives some more flexibility what we can put into the link text (e.g., subcommands or other clauses). In the future, these could then be converted to DocBook 5 style. I haven't converted absolutely all xrefs to SQL command reference pages, only those where we care about the appearance of the link text or where it was otherwise appropriate to make the appearance match a bit better. Also in some cases, the links where repetitive, so in those cases the links where just removed and replaced by a plain . In cases where we just want the link and don't specifically care about the generated link text (typically phrased "for further information see ") the xref is kept. Reported-by: Dagfinn Ilmari Mannsåker Discussion: https://www.postgresql.org/message-id/flat/87o8pco34z.fsf@wibble.ilmari.org --- doc/src/sgml/ref/create_function.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/src/sgml/ref/create_function.sgml') diff --git a/doc/src/sgml/ref/create_function.sgml b/doc/src/sgml/ref/create_function.sgml index 97285b75784..3c1eaea651c 100644 --- a/doc/src/sgml/ref/create_function.sgml +++ b/doc/src/sgml/ref/create_function.sgml @@ -557,7 +557,7 @@ CREATE [ OR REPLACE ] FUNCTION the SQL function. The string obj_file is the name of the shared library file containing the compiled C function, and is interpreted - as for the command. The string + as for the LOAD command. The string link_symbol is the function's link symbol, that is, the name of the function in the C language source code. If the link symbol is omitted, it is assumed to -- cgit v1.2.3