{"id":3813,"date":"2021-11-01T18:07:28","date_gmt":"2021-11-01T21:07:28","guid":{"rendered":"https:\/\/kondado.com.br\/blog\/wiki\/?p=3813"},"modified":"2026-04-08T17:48:59","modified_gmt":"2026-04-08T20:48:59","slug":"funcao-remove-eol","status":"publish","type":"post","link":"https:\/\/kondado.com.br\/blog\/wiki\/2021\/11\/01\/funcao-remove-eol\/","title":{"rendered":"Remove EOL"},"content":{"rendered":"\n<p><strong>Descri\u00e7\u00e3o<\/strong><\/p>\n\n\n\n<p>Remove caracteres EOL (end of line \/ newline) de qualquer parte do texto<\/p>\n\n\n\n<p><strong>Categoria<\/strong><\/p>\n\n\n\n<p>Transforma\u00e7\u00e3o<\/p>\n\n\n\n<p><strong>Tipos de campo suportados<\/strong><\/p>\n\n\n\n<ul><li>text<\/li><\/ul>\n\n\n\n<p><strong>Tipo de sa\u00edda<\/strong> <strong>do campo<\/strong><\/p>\n\n\n\n<p>text<\/p>\n\n\n\n<p><strong>Argumentos<\/strong><\/p>\n\n\n\n<ul><li><em>Nenhum<\/em><\/li><\/ul>\n\n\n\n<p><strong>Pseudo-c\u00f3digo (python)<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">def func(val):\n    \"\"\"\n        val: valor do campo do tipo texto\n    \"\"\"\n    import re\n    if val:\n        return re.sub(r'[\\n\\r]+', '', val)\n    else:\n        return None<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Documenta\u00e7\u00e3o da fun\u00e7\u00e3o REMOVE_EOL da Kondado. Remova quebras de linha de campos de texto nos seus modelos de transforma\u00e7\u00e3o.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,448],"tags":[324,320,325,327],"_links":{"self":[{"href":"https:\/\/kondado.com.br\/blog\/wiki\/wp-json\/wp\/v2\/posts\/3813"}],"collection":[{"href":"https:\/\/kondado.com.br\/blog\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kondado.com.br\/blog\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kondado.com.br\/blog\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kondado.com.br\/blog\/wiki\/wp-json\/wp\/v2\/comments?post=3813"}],"version-history":[{"count":2,"href":"https:\/\/kondado.com.br\/blog\/wiki\/wp-json\/wp\/v2\/posts\/3813\/revisions"}],"predecessor-version":[{"id":11127,"href":"https:\/\/kondado.com.br\/blog\/wiki\/wp-json\/wp\/v2\/posts\/3813\/revisions\/11127"}],"wp:attachment":[{"href":"https:\/\/kondado.com.br\/blog\/wiki\/wp-json\/wp\/v2\/media?parent=3813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kondado.com.br\/blog\/wiki\/wp-json\/wp\/v2\/categories?post=3813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kondado.com.br\/blog\/wiki\/wp-json\/wp\/v2\/tags?post=3813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}