Skip to content
Snippets Groups Projects
Commit e6906d14 authored by Phil's avatar Phil
Browse files

Had packet.show() and packet.__repr__() take conf.emph in account

parent 89a731d1
No related branches found
No related tags found
No related merge requests found
...@@ -226,7 +226,7 @@ class Packet(BasePacket): ...@@ -226,7 +226,7 @@ class Packet(BasePacket):
val = f.i2repr(self, self.overloaded_fields[f.name]) val = f.i2repr(self, self.overloaded_fields[f.name])
else: else:
continue continue
if isinstance(f, Emph): if isinstance(f, Emph) or f in conf.emph:
ncol = ct.emph_field_name ncol = ct.emph_field_name
vcol = ct.emph_field_value vcol = ct.emph_field_value
else: else:
...@@ -775,7 +775,7 @@ Creates an EPS file describing a packet. If filename is not provided a temporary ...@@ -775,7 +775,7 @@ Creates an EPS file describing a packet. If filename is not provided a temporary
for f in self.fields_desc: for f in self.fields_desc:
if isinstance(f, ConditionalField) and not f._evalcond(self): if isinstance(f, ConditionalField) and not f._evalcond(self):
continue continue
if isinstance(f, Emph): if isinstance(f, Emph) or f in conf.emph:
ncol = ct.emph_field_name ncol = ct.emph_field_name
vcol = ct.emph_field_value vcol = ct.emph_field_value
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment