Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
erlang
2941-Don-t-print-two-spaces-for-typed_record_fi...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2941-Don-t-print-two-spaces-for-typed_record_field.patch of Package erlang
From d8da1a9c129bddf59e59285a456e15564b2fd85e Mon Sep 17 00:00:00 2001 From: Pierre Krafft <kpierre@outlook.com> Date: Thu, 7 Nov 2019 01:54:48 +0100 Subject: [PATCH 1/5] Don't print two spaces for typed_record_field prettypr:par/2 adds a space already -record(a, {a :: a, b :: b}). used to become -record(a, {a :: a, b :: b}). now it becomes -record(a, {a :: a, b :: b}). --- lib/syntax_tools/src/erl_prettypr.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/syntax_tools/src/erl_prettypr.erl b/lib/syntax_tools/src/erl_prettypr.erl index d70dd40a8a..2a059a9d79 100644 --- a/lib/syntax_tools/src/erl_prettypr.erl +++ b/lib/syntax_tools/src/erl_prettypr.erl @@ -993,7 +993,7 @@ lay_2(Node, Ctxt) -> D1 = lay(erl_syntax:typed_record_field_body(Node), Ctxt1), D2 = lay(erl_syntax:typed_record_field_type(Node), set_prec(Ctxt, Prec)), - D3 = par([D1, floating(text(" ::")), D2], + D3 = par([D1, floating(text("::")), D2], Ctxt1#ctxt.break_indent), maybe_parentheses(D3, Prec, Ctxt); -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor