Received: |
by LISTSERV.REDIRIS.ES (LISTSERV-TCP/IP release 17.0) with spool id
5290008 for [log in para visualizar]; Sat, 21 May 2022 15:04:37
+0200
from mx02.puc.rediris.es (outbound6sev.lav.puc.rediris.es
[130.206.19.181]) by listserv.backend.rediris.es (Postfix) with ESMTP
id D4A35292C15 for < [log in para visualizar]>; Sat, 21 May 2022
15:04:37 +0200 (CEST)
from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) by
mx02.puc.rediris.es with ESMTP id 24LD4Zxj010832-24LD4Zxl010832
(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO)
for < [log in para visualizar]>; Sat, 21 May 2022 15:04:36 +0200
from submission (posteo.de [185.67.36.169]) by mout02.posteo.de
(Postfix) with ESMTPS id C0372240108 for
< [log in para visualizar]>; Sat, 21 May 2022 15:04:34 +0200 (CEST)
from customer (localhost [127.0.0.1]) by submission (posteo.de) with
ESMTPSA id 4L53hf2TL1z6tm6 for < [log in para visualizar]>; Sat, 21
May 2022 15:04:34 +0200 (CEST) |
Content-Type: |
text/plain; charset=utf-8 |
Date: |
Sat, 21 May 2022 13:04:31 +0000 |
Subject: |
|
Emisor: |
|
X-FEAS-SPF: |
|
Sender: |
|
Reply-To: |
|
Delivered-To: |
|
Content-Transfer-Encoding: |
quoted-printable |
Message-ID: |
|
MIME-Version: |
1.0 |
X-FEAS-DKIM: |
Valid |
X-FE-Policy-ID: |
21:3:1:listserv.rediris.es |
Parts/Attachments: |
|
|
Hola, una pregunta para los expertos en Lua de la sala, porque he estado
buscando por la documentación e internet y no soy capaz de encontrar
nada. Estoy escribiendo algo para intentar abreviar automáticamente los
títulos de sección largos en las cabeceras de las páginas, y me
preguntaba si por un casual lua tiene algo como esto en python (porque a
ver si voy a estar reinventando la rueda):
import textwrap
str = textwrap.shorten('El perro de San Roque no tiene rabo porque Ramón Ramírez se lo ha cortado', width=40, placeholder='...')
print(str)
: El perro de San Roque no tiene rabo...
Aquí la gracia está en que nunca quede una palabra trunca.
Por cierto, no sé si también habrá algo escrito ya para abreviar los
títulos largos en las cabeceras, y estoy reinventando la rueda bis...
Saludos y buen fin de semana,
Juan Manuel
----------------------------------------------------
Los artículos de ES-TEX son distribuidos gracias al apoyo y colaboración
técnica de RedIRIS - Red Académica española - (http://www.rediris.es)
------------------------------------------------------
|
|
|